Class KubectlExec
java.lang.Object
io.kubernetes.client.extended.kubectl.KubectlExec
- All Implemented Interfaces:
Kubectl.Executable<Integer>
-
Method Summary
Modifier and TypeMethodDescriptionapiClient
(io.kubernetes.client.openapi.ApiClient apiClient) protected static Thread
copyAsync
(InputStream in, OutputStream out, Consumer<Throwable> onUnhandledError) execute()
Run and retrieve the output from the kubectl helpers.protected io.kubernetes.client.util.generic.GenericKubernetesApi<io.kubernetes.client.openapi.models.V1Pod,
io.kubernetes.client.common.KubernetesListObject> protected io.kubernetes.client.util.generic.GenericKubernetesApi<? extends io.kubernetes.client.common.KubernetesObject,
? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi
(io.kubernetes.client.common.KubernetesObject targetObj) protected <ApiType extends io.kubernetes.client.common.KubernetesObject>
io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi
(Class<ApiType> apiTypeClass) protected <ApiType extends io.kubernetes.client.common.KubernetesObject,
ApiListType extends io.kubernetes.client.common.KubernetesListObject>
io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,ApiListType> getGenericApi
(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass) protected boolean
isNamespaced
(io.kubernetes.client.common.KubernetesObject obj) onUnhandledError
(Consumer<Throwable> onUnhandledError) protected void
stdin
(boolean stdin) tty
(boolean tty)
-
Method Details
-
command
-
stdin
-
tty
-
onUnhandledError
-
execute
Description copied from interface:Kubectl.Executable
Run and retrieve the output from the kubectl helpers.- Specified by:
execute
in interfaceKubectl.Executable<Integer>
- Returns:
- the output, can be Void
- Throws:
KubectlException
- the kubectl exception
-
copyAsync
protected static Thread copyAsync(InputStream in, OutputStream out, Consumer<Throwable> onUnhandledError) -
container
-
name
-
getGenericApi
protected io.kubernetes.client.util.generic.GenericKubernetesApi<io.kubernetes.client.openapi.models.V1Pod,io.kubernetes.client.common.KubernetesListObject> getGenericApi() throws KubectlException- Throws:
KubectlException
-
isNamespaced
protected boolean isNamespaced(io.kubernetes.client.common.KubernetesObject obj) -
getGenericApi
protected io.kubernetes.client.util.generic.GenericKubernetesApi<? extends io.kubernetes.client.common.KubernetesObject,? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi(io.kubernetes.client.common.KubernetesObject targetObj) throws KubectlException - Throws:
KubectlException
-
namespace
-
refreshDiscovery
- Throws:
KubectlException
-
getGenericApi
protected <ApiType extends io.kubernetes.client.common.KubernetesObject> io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,? extends io.kubernetes.client.common.KubernetesListObject> getGenericApi(Class<ApiType> apiTypeClass) throws KubectlException - Throws:
KubectlException
-
getGenericApi
protected <ApiType extends io.kubernetes.client.common.KubernetesObject,ApiListType extends io.kubernetes.client.common.KubernetesListObject> io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,ApiListType> getGenericApi(Class<ApiType> apiTypeClass, Class<ApiListType> apiListTypeClass) throws KubectlException - Throws:
KubectlException
-
apiClient
-
skipDiscovery
-