Class KubectlApiResources
java.lang.Object
io.kubernetes.client.extended.kubectl.KubectlApiResources
- All Implemented Interfaces:
Kubectl.Executable<Set<io.kubernetes.client.Discovery.APIResource>>
public class KubectlApiResources
extends Object
implements Kubectl.Executable<Set<io.kubernetes.client.Discovery.APIResource>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiClient
(io.kubernetes.client.openapi.ApiClient apiClient) Set<io.kubernetes.client.Discovery.APIResource>
execute()
Run and retrieve the output from the kubectl helpers.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 void
-
Constructor Details
-
KubectlApiResources
public KubectlApiResources()
-
-
Method Details
-
execute
Description copied from interface:Kubectl.Executable
Run and retrieve the output from the kubectl helpers.- Specified by:
execute
in interfaceKubectl.Executable<Set<io.kubernetes.client.Discovery.APIResource>>
- Returns:
- the output, can be Void
- Throws:
KubectlException
- the kubectl exception
-
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
-