use of io.kubernetes.client.apis.ExtensionsV1beta1Api in project java by kubernetes-client.
the class PatchExample method createDeployment.
public ExtensionsV1beta1Deployment createDeployment(String namespace, ExtensionsV1beta1Deployment body, String pretty) throws ApiException {
ExtensionsV1beta1Api api = new ExtensionsV1beta1Api();
ExtensionsV1beta1Deployment deploy = api.createNamespacedDeployment(namespace, body, pretty);
return deploy;
}
use of io.kubernetes.client.apis.ExtensionsV1beta1Api in project java by kubernetes-client.
the class PatchExample method PatchDeployment.
public ExtensionsV1beta1Deployment PatchDeployment(String deployName, String namespace, Object body, String pretty) throws ApiException {
ExtensionsV1beta1Api api = new ExtensionsV1beta1Api();
ExtensionsV1beta1Deployment deploy = api.patchNamespacedDeployment(deployName, namespace, body, pretty);
return deploy;
}
Aggregations