![JAR search and dependency download from the Maven repository](/logo.png)
io.k8s.api.apps.v1.RollingUpdateStatefulSetStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.api.apps.v1;
import java.lang.Long;
import java.lang.String;
/**
* RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
*/
public class RollingUpdateStatefulSetStrategy {
public String maxUnavailable;
public Long partition;
/**
* 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.
*/
public RollingUpdateStatefulSetStrategy maxUnavailable(String maxUnavailable) {
this.maxUnavailable = maxUnavailable;
return this;
}
/**
* 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.
*/
public RollingUpdateStatefulSetStrategy partition(Long partition) {
this.partition = partition;
return this;
}
public static RollingUpdateStatefulSetStrategy rollingUpdateStatefulSetStrategy() {
return new RollingUpdateStatefulSetStrategy();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy