use of io.kubernetes.client.models.ExtensionsV1beta1Deployment in project java by kubernetes-client.
the class PatchExample method main.
public static void main(String[] args) throws IOException, ApiException {
PatchExample example = new PatchExample();
ApiClient client = ClientBuilder.defaultClient();
Configuration.setDefaultApiClient(client);
ExtensionsV1beta1Deployment body = (ExtensionsV1beta1Deployment) example.deserialize(jsonDepStr, ExtensionsV1beta1Deployment.class);
ExtensionsV1beta1Deployment deploy1 = example.createDeployment("default", body, "false");
System.out.println("original deployment" + deploy1);
ArrayList<JsonObject> arr = new ArrayList<>();
arr.add(((JsonElement) example.deserialize(jsonPatchStr, JsonElement.class)).getAsJsonObject());
ExtensionsV1beta1Deployment deploy2 = example.PatchDeployment("hello-node", "default", arr, "false");
System.out.println("patched deployment" + deploy2);
}
use of io.kubernetes.client.models.ExtensionsV1beta1Deployment 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.models.ExtensionsV1beta1Deployment in project java by kubernetes-client.
the class ExtensionsV1beta1ApiTest method readNamespacedDeploymentTest.
/**
* read the specified Deployment
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void readNamespacedDeploymentTest() throws ApiException {
String name = null;
String namespace = null;
String pretty = null;
Boolean exact = null;
Boolean export = null;
ExtensionsV1beta1Deployment response = api.readNamespacedDeployment(name, namespace, pretty, exact, export);
// TODO: test validations
}
use of io.kubernetes.client.models.ExtensionsV1beta1Deployment in project java by kubernetes-client.
the class ExtensionsV1beta1ApiTest method readNamespacedDeploymentStatusTest.
/**
* read status of the specified Deployment
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void readNamespacedDeploymentStatusTest() throws ApiException {
String name = null;
String namespace = null;
String pretty = null;
ExtensionsV1beta1Deployment response = api.readNamespacedDeploymentStatus(name, namespace, pretty);
// TODO: test validations
}
use of io.kubernetes.client.models.ExtensionsV1beta1Deployment in project java by kubernetes-client.
the class ExtensionsV1beta1ApiTest method createNamespacedDeploymentTest.
/**
* create a Deployment
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void createNamespacedDeploymentTest() throws ApiException {
String namespace = null;
ExtensionsV1beta1Deployment body = null;
String pretty = null;
ExtensionsV1beta1Deployment response = api.createNamespacedDeployment(namespace, body, pretty);
// TODO: test validations
}
Aggregations