Class StatefulSetOrdinals
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.apps.StatefulSetOrdinals
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<StatefulSetOrdinalsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class StatefulSetOrdinals extends Object implements io.fabric8.kubernetes.api.builder.Editable<StatefulSetOrdinalsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StatefulSetOrdinals()No args constructor for use in serializationStatefulSetOrdinals(Integer start)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatefulSetOrdinalsBuilderedit()Map<String,Object>getAdditionalProperties()IntegergetStart()start is the number representing the first replica's index.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetStart(Integer start)start is the number representing the first replica's index.StatefulSetOrdinalsBuildertoBuilder()
-
-
-
Constructor Detail
-
StatefulSetOrdinals
public StatefulSetOrdinals()
No args constructor for use in serialization
-
StatefulSetOrdinals
public StatefulSetOrdinals(Integer start)
-
-
Method Detail
-
getStart
public Integer getStart()
start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:[.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
If unset, defaults to 0. Replica indices will be in the range:
[0, .spec.replicas).
-
setStart
public void setStart(Integer start)
start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:[.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
If unset, defaults to 0. Replica indices will be in the range:
[0, .spec.replicas).
-
edit
public StatefulSetOrdinalsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<StatefulSetOrdinalsBuilder>
-
toBuilder
public StatefulSetOrdinalsBuilder toBuilder()
-
-