Class DeploymentSpec

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class DeploymentSpec
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    DeploymentSpec is the specification of the desired behavior of the Deployment.
    • Constructor Detail

      • DeploymentSpec

        public DeploymentSpec​(java.lang.Number minReadySeconds,
                              java.lang.Boolean paused,
                              java.lang.Number progressDeadlineSeconds,
                              java.lang.Number replicas,
                              java.lang.Number revisionHistoryLimit,
                              RollbackConfig rollbackTo,
                              LabelSelector selector,
                              DeploymentStrategy strategy,
                              @NonNull
                              @NonNull PodTemplateSpec template)
      • DeploymentSpec

        public DeploymentSpec()
    • Method Detail

      • getMinReadySeconds

        public java.lang.Number getMinReadySeconds()
        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 java.lang.Boolean getPaused()
        Indicates that the deployment is paused and will not be processed by the deployment controller.
      • getProgressDeadlineSeconds

        public java.lang.Number getProgressDeadlineSeconds()
        The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
      • getReplicas

        public java.lang.Number getReplicas()
        Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
      • getRevisionHistoryLimit

        public java.lang.Number getRevisionHistoryLimit()
        The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets".
      • setMinReadySeconds

        public void setMinReadySeconds​(java.lang.Number minReadySeconds)
        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)
      • setPaused

        public void setPaused​(java.lang.Boolean paused)
        Indicates that the deployment is paused and will not be processed by the deployment controller.
      • setProgressDeadlineSeconds

        public void setProgressDeadlineSeconds​(java.lang.Number progressDeadlineSeconds)
        The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
      • setReplicas

        public void setReplicas​(java.lang.Number replicas)
        Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
      • setRevisionHistoryLimit

        public void setRevisionHistoryLimit​(java.lang.Number revisionHistoryLimit)
        The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means "retaining all old RelicaSets".
      • setRollbackTo

        public void setRollbackTo​(RollbackConfig rollbackTo)
      • setSelector

        public void setSelector​(LabelSelector selector)
      • setTemplate

        public void setTemplate​(@NonNull
                                @NonNull PodTemplateSpec template)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object