Class RollingUpdateStatefulSetStrategy

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

    public class RollingUpdateStatefulSetStrategy
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
    • Constructor Detail

      • RollingUpdateStatefulSetStrategy

        public RollingUpdateStatefulSetStrategy​(java.lang.String maxUnavailable,
                                                java.lang.Number partition)
      • RollingUpdateStatefulSetStrategy

        public RollingUpdateStatefulSetStrategy()
    • Method Detail

      • getMaxUnavailable

        public java.lang.String getMaxUnavailable()
      • getPartition

        public java.lang.Number getPartition()
        Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
      • setMaxUnavailable

        public void setMaxUnavailable​(java.lang.String maxUnavailable)
      • setPartition

        public void setPartition​(java.lang.Number partition)
        Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.
      • 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