Search in sources :

Example 1 with AppsV1beta2Api

use of io.kubernetes.client.apis.AppsV1beta2Api in project twister2 by DSC-SPIDAL.

the class KubernetesController method createApiInstances.

public void createApiInstances() {
    try {
        client = io.kubernetes.client.util.Config.defaultClient();
    } catch (IOException e) {
        LOG.log(Level.SEVERE, "Exception when creating ApiClient: ", e);
        throw new RuntimeException(e);
    }
    Configuration.setDefaultApiClient(client);
    coreApi = new CoreV1Api();
    beta2Api = new AppsV1beta2Api(client);
}
Also used : AppsV1beta2Api(io.kubernetes.client.apis.AppsV1beta2Api) IOException(java.io.IOException) CoreV1Api(io.kubernetes.client.apis.CoreV1Api)

Aggregations

AppsV1beta2Api (io.kubernetes.client.apis.AppsV1beta2Api)1 CoreV1Api (io.kubernetes.client.apis.CoreV1Api)1 IOException (java.io.IOException)1