public class DefaultK8sApiClient extends Object implements K8sApiClient
K8sApiClient impl using k8s-client java lib.| Constructor and Description |
|---|
DefaultK8sApiClient(io.kubernetes.client.openapi.ApiClient realK8sClient,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper) |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryDruidNodeList |
listPods(String podNamespace,
String labelSelector,
NodeRole nodeRole) |
void |
patchPod(String podName,
String podNamespace,
String jsonPatchStr) |
WatchResult |
watchPods(String namespace,
String labelSelector,
String lastKnownResourceVersion,
NodeRole nodeRole) |
@Inject
public DefaultK8sApiClient(io.kubernetes.client.openapi.ApiClient realK8sClient,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
public void patchPod(String podName, String podNamespace, String jsonPatchStr)
patchPod in interface K8sApiClientpublic DiscoveryDruidNodeList listPods(String podNamespace, String labelSelector, NodeRole nodeRole)
listPods in interface K8sApiClientpublic WatchResult watchPods(String namespace, String labelSelector, String lastKnownResourceVersion, NodeRole nodeRole)
watchPods in interface K8sApiClientWatchResult objectCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.