Search in sources :

Example 1 with KubernetesModelGenerator

use of com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator in project jointware by isdream.

the class NamespaceTest method testCreateNamespace.

public void testCreateNamespace() throws Exception {
    DefaultKubernetesClient client = new DefaultKubernetesClient("http://118.190.46.58:9888");
    KubernetesModelGenerator generator = new KubernetesModelGenerator();
    generator.create(client, "Namespace", params);
}
Also used : KubernetesModelGenerator(com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator) DefaultKubernetesClient(io.fabric8.kubernetes.client.DefaultKubernetesClient)

Example 2 with KubernetesModelGenerator

use of com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator in project jointware by isdream.

the class NamespaceTest method testDeleteNamespace.

public void testDeleteNamespace() throws Exception {
    DefaultKubernetesClient client = new DefaultKubernetesClient("http://118.190.46.58:9888");
    KubernetesModelGenerator generator = new KubernetesModelGenerator();
    generator.delete(client, "Namespace", "test431");
}
Also used : KubernetesModelGenerator(com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator) DefaultKubernetesClient(io.fabric8.kubernetes.client.DefaultKubernetesClient)

Example 3 with KubernetesModelGenerator

use of com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator in project jointware by isdream.

the class DeploymentTest method testUpdateDeployment.

// public void testCreateDeployment() throws Exception {
// DefaultKubernetesClient client = new DefaultKubernetesClient("http://118.190.46.58:9888");
// KubernetesModelParametersGenerator generator = new KubernetesModelParametersGenerator();
// generator.create(client, KubernetesConstants.KIND_DEPLOYMENT, params);
// 
// }
public void testUpdateDeployment() throws Exception {
    DefaultKubernetesClient client = new DefaultKubernetesClient("http://118.190.46.58:9888");
    KubernetesModelGenerator generator = new KubernetesModelGenerator();
    generator.scaleTo(client, "Deployment", "default", "busybox-dm", 4);
}
Also used : KubernetesModelGenerator(com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator) DefaultKubernetesClient(io.fabric8.kubernetes.client.DefaultKubernetesClient)

Example 4 with KubernetesModelGenerator

use of com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator in project jointware by isdream.

the class DeploymentTest method testDeleteDeployment.

public void testDeleteDeployment() throws Exception {
    DefaultKubernetesClient client = new DefaultKubernetesClient("http://118.190.46.58:9888");
    KubernetesModelGenerator generator = new KubernetesModelGenerator();
    generator.delete(client, "Deployment", "default", "busybox-dm");
}
Also used : KubernetesModelGenerator(com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator) DefaultKubernetesClient(io.fabric8.kubernetes.client.DefaultKubernetesClient)

Aggregations

KubernetesModelGenerator (com.github.isdream.chameleon.container.kubernetes.KubernetesModelGenerator)4 DefaultKubernetesClient (io.fabric8.kubernetes.client.DefaultKubernetesClient)4