Class StatefulSetOrdinals

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class StatefulSetOrdinals
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.
    • Constructor Detail

      • StatefulSetOrdinals

        public StatefulSetOrdinals​(java.lang.Number start)
      • StatefulSetOrdinals

        public StatefulSetOrdinals()
    • Method Detail

      • getStart

        public java.lang.Number 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​(java.lang.Number 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).

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object