Search in sources :

Example 1 with ExtensionsV1beta1Api

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;
}
Also used : ExtensionsV1beta1Api(io.kubernetes.client.apis.ExtensionsV1beta1Api) ExtensionsV1beta1Deployment(io.kubernetes.client.models.ExtensionsV1beta1Deployment)

Example 2 with ExtensionsV1beta1Api

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;
}
Also used : ExtensionsV1beta1Api(io.kubernetes.client.apis.ExtensionsV1beta1Api) ExtensionsV1beta1Deployment(io.kubernetes.client.models.ExtensionsV1beta1Deployment)

Aggregations

ExtensionsV1beta1Api (io.kubernetes.client.apis.ExtensionsV1beta1Api)2 ExtensionsV1beta1Deployment (io.kubernetes.client.models.ExtensionsV1beta1Deployment)2