Class V1DeploymentSpec
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1DeploymentSpec
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1DeploymentSpec
extends Object
DeploymentSpec is the specification of the desired behavior of the Deployment.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Indicates that the deployment is paused.The maximum time in seconds for a deployment to make progress before it is considered to be failed.Number of desired pods.The number of old ReplicaSets to retain to allow rollback.int
hashCode()
minReadySeconds
(Integer minReadySeconds) Set minReadySeconds in a chainable fashion.Set paused in a chainable fashion.progressDeadlineSeconds
(Integer progressDeadlineSeconds) Set progressDeadlineSeconds in a chainable fashion.Set replicas in a chainable fashion.revisionHistoryLimit
(Integer revisionHistoryLimit) Set revisionHistoryLimit in a chainable fashion.selector
(V1LabelSelector selector) Set selector in a chainable fashion.void
setMinReadySeconds
(Integer minReadySeconds) Set the minReadySeconds property valuevoid
Set the paused property valuevoid
setProgressDeadlineSeconds
(Integer progressDeadlineSeconds) Set the progressDeadlineSeconds property valuevoid
setReplicas
(Integer replicas) Set the replicas property valuevoid
setRevisionHistoryLimit
(Integer revisionHistoryLimit) Set the revisionHistoryLimit property valuevoid
setSelector
(V1LabelSelector selector) Set the selector property valuevoid
setStrategy
(V1DeploymentStrategy strategy) Set the strategy property valuevoid
setTemplate
(V1PodTemplateSpec template) Set the template property valuestrategy
(V1DeploymentStrategy strategy) Set strategy in a chainable fashion.template
(V1PodTemplateSpec template) Set template in a chainable fashion.toString()
-
Field Details
-
JSON_PROPERTY_SELECTOR
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
JSON_PROPERTY_MIN_READY_SECONDS
- See Also:
-
JSON_PROPERTY_PAUSED
- See Also:
-
JSON_PROPERTY_PROGRESS_DEADLINE_SECONDS
- See Also:
-
JSON_PROPERTY_REPLICAS
- See Also:
-
JSON_PROPERTY_REVISION_HISTORY_LIMIT
- See Also:
-
JSON_PROPERTY_STRATEGY
- See Also:
-
-
Constructor Details
-
V1DeploymentSpec
-
-
Method Details
-
getSelector
- Returns:
- the selector property value
-
setSelector
Set the selector property value- Parameters:
selector
- property value to set
-
selector
Set selector in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
getTemplate
- Returns:
- the template property value
-
setTemplate
Set the template property value- Parameters:
template
- property value to set
-
template
Set template in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
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)- Returns:
- the minReadySeconds property value
-
setMinReadySeconds
Set the minReadySeconds property value- Parameters:
minReadySeconds
- property value to set
-
minReadySeconds
Set minReadySeconds in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
getPaused
Indicates that the deployment is paused.- Returns:
- the paused property value
-
setPaused
Set the paused property value- Parameters:
paused
- property value to set
-
paused
Set paused in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
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.- Returns:
- the progressDeadlineSeconds property value
-
setProgressDeadlineSeconds
Set the progressDeadlineSeconds property value- Parameters:
progressDeadlineSeconds
- property value to set
-
progressDeadlineSeconds
Set progressDeadlineSeconds in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
getReplicas
Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.- Returns:
- the replicas property value
-
setReplicas
Set the replicas property value- Parameters:
replicas
- property value to set
-
replicas
Set replicas in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
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.- Returns:
- the revisionHistoryLimit property value
-
setRevisionHistoryLimit
Set the revisionHistoryLimit property value- Parameters:
revisionHistoryLimit
- property value to set
-
revisionHistoryLimit
Set revisionHistoryLimit in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
getStrategy
- Returns:
- the strategy property value
-
setStrategy
Set the strategy property value- Parameters:
strategy
- property value to set
-
strategy
Set strategy in a chainable fashion.- Returns:
- The same instance of V1DeploymentSpec for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-