
io.kubernetes.client.models.V1beta2RollingUpdateDaemonSet Maven / Gradle / Ivy
/*
* Kubernetes
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v1.11.1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.kubernetes.client.models;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.kubernetes.client.custom.IntOrString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Spec to control the desired behavior of daemon set rolling update.
*/
@ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.")
public class V1beta2RollingUpdateDaemonSet {
@SerializedName("maxUnavailable")
private IntOrString maxUnavailable = null;
public V1beta2RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) {
this.maxUnavailable = maxUnavailable;
return this;
}
/**
* The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.
* @return maxUnavailable
**/
@ApiModelProperty(value = "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.")
public IntOrString getMaxUnavailable() {
return maxUnavailable;
}
public void setMaxUnavailable(IntOrString maxUnavailable) {
this.maxUnavailable = maxUnavailable;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1beta2RollingUpdateDaemonSet v1beta2RollingUpdateDaemonSet = (V1beta2RollingUpdateDaemonSet) o;
return Objects.equals(this.maxUnavailable, v1beta2RollingUpdateDaemonSet.maxUnavailable);
}
@Override
public int hashCode() {
return Objects.hash(maxUnavailable);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1beta2RollingUpdateDaemonSet {\n");
sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy