Class DeploymentSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.apps.v1.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeploymentSpec.Builder
-
Constructor Summary
Constructors Constructor Description DeploymentSpec()
DeploymentSpec(java.lang.Number minReadySeconds, java.lang.Boolean paused, java.lang.Number progressDeadlineSeconds, java.lang.Number replicas, java.lang.Number revisionHistoryLimit, @NonNull LabelSelector selector, DeploymentStrategy strategy, @NonNull PodTemplateSpec template)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeploymentSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
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.java.lang.Boolean
getPaused()
Indicates that the deployment is paused.java.lang.Number
getProgressDeadlineSeconds()
The maximum time in seconds for a deployment to make progress before it is considered to be failed.java.lang.Number
getReplicas()
Number of desired pods.java.lang.Number
getRevisionHistoryLimit()
The number of old ReplicaSets to retain to allow rollback.@NonNull LabelSelector
getSelector()
DeploymentStrategy
getStrategy()
@NonNull PodTemplateSpec
getTemplate()
int
hashCode()
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.void
setPaused(java.lang.Boolean paused)
Indicates that the deployment is paused.void
setProgressDeadlineSeconds(java.lang.Number progressDeadlineSeconds)
The maximum time in seconds for a deployment to make progress before it is considered to be failed.void
setReplicas(java.lang.Number replicas)
Number of desired pods.void
setRevisionHistoryLimit(java.lang.Number revisionHistoryLimit)
The number of old ReplicaSets to retain to allow rollback.void
setSelector(@NonNull LabelSelector selector)
void
setStrategy(DeploymentStrategy strategy)
void
setTemplate(@NonNull PodTemplateSpec template)
DeploymentSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
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, @NonNull @NonNull LabelSelector selector, DeploymentStrategy strategy, @NonNull @NonNull PodTemplateSpec template)
-
DeploymentSpec
public DeploymentSpec()
-
-
Method Detail
-
builder
public static DeploymentSpec.Builder builder()
-
toBuilder
public DeploymentSpec.Builder toBuilder()
-
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.
-
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. Defaults to 600s.
-
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. Defaults to 10.
-
getSelector
@NonNull public @NonNull LabelSelector getSelector()
-
getStrategy
public DeploymentStrategy getStrategy()
-
getTemplate
@NonNull public @NonNull PodTemplateSpec getTemplate()
-
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.
-
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. Defaults to 600s.
-
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. Defaults to 10.
-
setSelector
public void setSelector(@NonNull @NonNull LabelSelector selector)
-
setStrategy
public void setStrategy(DeploymentStrategy strategy)
-
setTemplate
public void setTemplate(@NonNull @NonNull PodTemplateSpec template)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-