Package io.fabric8.openshift.api.model
Class DeploymentConfigSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.DeploymentConfigSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeploymentConfigSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeploymentConfigSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeploymentConfigSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeploymentConfigSpec represents the desired state of the deployment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeploymentConfigSpec()No args constructor for use in serializationDeploymentConfigSpec(Integer minReadySeconds, Boolean paused, Integer replicas, Integer revisionHistoryLimit, Map<String,String> selector, DeploymentStrategy strategy, io.fabric8.kubernetes.api.model.PodTemplateSpec template, Boolean test, List<DeploymentTriggerPolicy> triggers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentConfigSpecBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetMinReadySeconds()minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.BooleangetPaused()paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers.IntegergetReplicas()replicas is the number of desired replicas.IntegergetRevisionHistoryLimit()revisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks.Map<String,String>getSelector()selector is a label query over pods that should match the Replicas count.DeploymentStrategygetStrategy()DeploymentConfigSpec represents the desired state of the deployment.io.fabric8.kubernetes.api.model.PodTemplateSpecgetTemplate()DeploymentConfigSpec represents the desired state of the deployment.BooleangetTest()test ensures that this deployment config will have zero replicas except while a deployment is running.List<DeploymentTriggerPolicy>getTriggers()triggers determine how updates to a DeploymentConfig result in new deployments.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetMinReadySeconds(Integer minReadySeconds)minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available.voidsetPaused(Boolean paused)paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers.voidsetReplicas(Integer replicas)replicas is the number of desired replicas.voidsetRevisionHistoryLimit(Integer revisionHistoryLimit)revisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks.voidsetSelector(Map<String,String> selector)selector is a label query over pods that should match the Replicas count.voidsetStrategy(DeploymentStrategy strategy)DeploymentConfigSpec represents the desired state of the deployment.voidsetTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)DeploymentConfigSpec represents the desired state of the deployment.voidsetTest(Boolean test)test ensures that this deployment config will have zero replicas except while a deployment is running.voidsetTriggers(List<DeploymentTriggerPolicy> triggers)triggers determine how updates to a DeploymentConfig result in new deployments.DeploymentConfigSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
DeploymentConfigSpec
public DeploymentConfigSpec()
No args constructor for use in serialization
-
DeploymentConfigSpec
public DeploymentConfigSpec(Integer minReadySeconds, Boolean paused, Integer replicas, Integer revisionHistoryLimit, Map<String,String> selector, DeploymentStrategy strategy, io.fabric8.kubernetes.api.model.PodTemplateSpec template, Boolean test, List<DeploymentTriggerPolicy> triggers)
-
-
Method Detail
-
getMinReadySeconds
public Integer getMinReadySeconds()
minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
-
setMinReadySeconds
public void setMinReadySeconds(Integer minReadySeconds)
minReadySeconds is the minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
-
getPaused
public Boolean getPaused()
paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers.
-
setPaused
public void setPaused(Boolean paused)
paused indicates that the deployment config is paused resulting in no new deployments on template changes or changes in the template caused by other triggers.
-
getReplicas
public Integer getReplicas()
replicas is the number of desired replicas.
-
setReplicas
public void setReplicas(Integer replicas)
replicas is the number of desired replicas.
-
getRevisionHistoryLimit
public Integer getRevisionHistoryLimit()
revisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified. Defaults to 10. (This only applies to DeploymentConfigs created via the new group API resource, not the legacy resource.)
-
setRevisionHistoryLimit
public void setRevisionHistoryLimit(Integer revisionHistoryLimit)
revisionHistoryLimit is the number of old ReplicationControllers to retain to allow for rollbacks. This field is a pointer to allow for differentiation between an explicit zero and not specified. Defaults to 10. (This only applies to DeploymentConfigs created via the new group API resource, not the legacy resource.)
-
getSelector
public Map<String,String> getSelector()
selector is a label query over pods that should match the Replicas count.
-
setSelector
public void setSelector(Map<String,String> selector)
selector is a label query over pods that should match the Replicas count.
-
getStrategy
public DeploymentStrategy getStrategy()
DeploymentConfigSpec represents the desired state of the deployment.
-
setStrategy
public void setStrategy(DeploymentStrategy strategy)
DeploymentConfigSpec represents the desired state of the deployment.
-
getTemplate
public io.fabric8.kubernetes.api.model.PodTemplateSpec getTemplate()
DeploymentConfigSpec represents the desired state of the deployment.
-
setTemplate
public void setTemplate(io.fabric8.kubernetes.api.model.PodTemplateSpec template)
DeploymentConfigSpec represents the desired state of the deployment.
-
getTest
public Boolean getTest()
test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action.
-
setTest
public void setTest(Boolean test)
test ensures that this deployment config will have zero replicas except while a deployment is running. This allows the deployment config to be used as a continuous deployment test - triggering on images, running the deployment, and then succeeding or failing. Post strategy hooks and After actions can be used to integrate successful deployment with an action.
-
getTriggers
public List<DeploymentTriggerPolicy> getTriggers()
triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger.
-
setTriggers
public void setTriggers(List<DeploymentTriggerPolicy> triggers)
triggers determine how updates to a DeploymentConfig result in new deployments. If no triggers are defined, a new deployment can only occur as a result of an explicit client update to the DeploymentConfig with a new LatestVersion. If null, defaults to having a config change trigger.
-
edit
public DeploymentConfigSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeploymentConfigSpecBuilder>
-
toBuilder
public DeploymentConfigSpecBuilder toBuilder()
-
-