Class V1RollingUpdateStatefulSetStrategy

java.lang.Object
io.kubernetes.client.openapi.models.V1RollingUpdateStatefulSetStrategy

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-12-05T08:14:34.919Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy extends Object
RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
  • Field Details

  • Constructor Details

    • V1RollingUpdateStatefulSetStrategy

      public V1RollingUpdateStatefulSetStrategy()
  • Method Details

    • maxUnavailable

      public V1RollingUpdateStatefulSetStrategy maxUnavailable(IntOrString maxUnavailable)
    • getMaxUnavailable

      @Nullable public IntOrString getMaxUnavailable()
      IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.
      Returns:
      maxUnavailable
    • setMaxUnavailable

      public void setMaxUnavailable(IntOrString maxUnavailable)
    • partition

      public V1RollingUpdateStatefulSetStrategy partition(Integer partition)
    • getPartition

      @Nullable public Integer 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.
      Returns:
      partition
    • setPartition

      public void setPartition(Integer partition)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object