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);
}
Aggregations