Class 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
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)