Search in sources :

Example 11 with CoreV1Api

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

the class WorkerController method createApiInstances.

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

Aggregations

CoreV1Api (io.kubernetes.client.apis.CoreV1Api)11 ApiClient (io.kubernetes.client.ApiClient)9 IOException (java.io.IOException)3 Response (com.squareup.okhttp.Response)1 TopologyRuntimeManagementException (com.twitter.heron.scheduler.TopologyRuntimeManagementException)1 ApiException (io.kubernetes.client.ApiException)1 AppsV1beta2Api (io.kubernetes.client.apis.AppsV1beta2Api)1 V1APIResourceList (io.kubernetes.client.models.V1APIResourceList)1 Authenticator (oracle.kubernetes.operator.authentication.Authenticator)1 Test (org.junit.Test)1