io.k8s.api.apps.v1.DeploymentStrategy 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.String;
/**
* DeploymentStrategy describes how to replace existing pods with new ones.
*/
public class DeploymentStrategy {
public RollingUpdateDeployment rollingUpdate;
public String type;
public DeploymentStrategy rollingUpdate(RollingUpdateDeployment rollingUpdate) {
this.rollingUpdate = rollingUpdate;
return this;
}
/**
* Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
*/
public DeploymentStrategy type(String type) {
this.type = type;
return this;
}
public static DeploymentStrategy deploymentStrategy() {
return new DeploymentStrategy();
}
}