Class 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 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).

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)