Class ReplicationControllerSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.ReplicationControllerSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ReplicationControllerSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
ReplicationControllerSpec is the specification of a replication controller.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReplicationControllerSpec.Builder
-
Constructor Summary
Constructors Constructor Description ReplicationControllerSpec()
ReplicationControllerSpec(java.lang.Number minReadySeconds, java.lang.Number replicas, java.util.Map<java.lang.String,java.lang.String> selector, PodTemplateSpec template)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplicationControllerSpec.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.Number
getReplicas()
Replicas is the number of desired replicas.java.util.Map<java.lang.String,java.lang.String>
getSelector()
Selector is a label query over pods that should match the Replicas count.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
setReplicas(java.lang.Number replicas)
Replicas is the number of desired replicas.void
setSelector(java.util.Map<java.lang.String,java.lang.String> selector)
Selector is a label query over pods that should match the Replicas count.void
setTemplate(PodTemplateSpec template)
ReplicationControllerSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ReplicationControllerSpec
public ReplicationControllerSpec(java.lang.Number minReadySeconds, java.lang.Number replicas, java.util.Map<java.lang.String,java.lang.String> selector, PodTemplateSpec template)
-
ReplicationControllerSpec
public ReplicationControllerSpec()
-
-
Method Detail
-
builder
public static ReplicationControllerSpec.Builder builder()
-
toBuilder
public ReplicationControllerSpec.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)
-
getReplicas
public java.lang.Number getReplicas()
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
-
getSelector
public java.util.Map<java.lang.String,java.lang.String> getSelector()
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
getTemplate
public 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)
-
setReplicas
public void setReplicas(java.lang.Number replicas)
Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller
-
setSelector
public void setSelector(java.util.Map<java.lang.String,java.lang.String> selector)
Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
-
setTemplate
public void setTemplate(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
-
-