public class KubernetesManifestGenerator extends AbstractKubernetesManifestGenerator<KubernetesConfig> implements WithProject
resourceRegistryproject| Constructor and Description |
|---|
KubernetesManifestGenerator(ResourceRegistry resources,
ConfigurationRegistry configurators) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends Configuration> type) |
protected void |
addDecorators(String group,
KubernetesConfig config) |
io.fabric8.kubernetes.api.model.apps.Deployment |
createDeployment(KubernetesConfig appConfig,
ImageConfiguration imageConfig)
Creates a
Deployment for the KubernetesConfig. |
static io.fabric8.kubernetes.api.model.PodSpec |
createPodSpec(KubernetesConfig appConfig,
ImageConfiguration imageConfig)
Creates a
PodSpec for the KubernetesConfig. |
static io.fabric8.kubernetes.api.model.PodTemplateSpec |
createPodTemplateSpec(KubernetesConfig appConfig,
ImageConfiguration imageConfig)
Creates a
PodTemplateSpec for the KubernetesConfig. |
void |
generate(KubernetesConfig config) |
ConfigurationSupplier<KubernetesConfig> |
getFallbackConfig() |
String |
getKey() |
int |
order() |
validateVolume, validateVolumeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyToProject, getProject, projectExists, setProjectpublic KubernetesManifestGenerator(ResourceRegistry resources, ConfigurationRegistry configurators)
public String getKey()
getKey in interface ManifestGenerator<KubernetesConfig>public int order()
order in interface ManifestGenerator<KubernetesConfig>public void generate(KubernetesConfig config)
generate in interface ManifestGenerator<KubernetesConfig>generate in class AbstractKubernetesManifestGenerator<KubernetesConfig>public boolean accepts(Class<? extends Configuration> type)
accepts in interface ManifestGenerator<KubernetesConfig>protected void addDecorators(String group, KubernetesConfig config)
addDecorators in class AbstractKubernetesManifestGenerator<KubernetesConfig>public io.fabric8.kubernetes.api.model.apps.Deployment createDeployment(KubernetesConfig appConfig, ImageConfiguration imageConfig)
Deployment for the KubernetesConfig.appConfig - The session.public static io.fabric8.kubernetes.api.model.PodTemplateSpec createPodTemplateSpec(KubernetesConfig appConfig, ImageConfiguration imageConfig)
PodTemplateSpec for the KubernetesConfig.appConfig - The sesssion.public static io.fabric8.kubernetes.api.model.PodSpec createPodSpec(KubernetesConfig appConfig, ImageConfiguration imageConfig)
PodSpec for the KubernetesConfig.imageConfig - The sesssion.public ConfigurationSupplier<KubernetesConfig> getFallbackConfig()
getFallbackConfig in interface ManifestGenerator<KubernetesConfig>Copyright © 2018–2021 Red Hat. All rights reserved.