Search in sources :

Example 1 with KubernetesExecutor

use of com.github.isdream.jointware.containers.impl.KubernetesExecutor in project jointware by isdream.

the class SimpleSampleTest method main.

/**
 * @param args
 * @throws Exception
 */
public static void main(String[] args) throws Exception {
    ConatinerExecutor dp = new KubernetesExecutor();
    // dp.create(createClient(), Namespace.class.getSimpleName(), getParams(NAMESPACE));
    // System.out.println(dp.query(createClient(), Namespace.class.getSimpleName(), "development"));
    // dp.create(createClient(), Deployment.class.getSimpleName(), getParams(DEPLOYMENT));
    // System.out.println( getParams(DEPLOYMENT));
    KubernetesModelGenerator gr = new KubernetesModelGenerator();
    // System.out.println(gr.toObject(getParams(NAMESPACE), Namespace.class.getSimpleName()));
    System.out.println(gr.toObject(getParams(DEPLOYMENT), Deployment.class.getSimpleName()));
}
Also used : KubernetesModelGenerator(com.github.isdream.jointware.kubernetes.KubernetesModelGenerator) KubernetesExecutor(com.github.isdream.jointware.containers.impl.KubernetesExecutor)

Aggregations

KubernetesExecutor (com.github.isdream.jointware.containers.impl.KubernetesExecutor)1 KubernetesModelGenerator (com.github.isdream.jointware.kubernetes.KubernetesModelGenerator)1