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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apiClient(io.kubernetes.client.openapi.ApiClient apiClient)
     
    Set<io.kubernetes.client.Discovery.APIResource>
    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
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KubectlApiResources

      public KubectlApiResources()
  • Method Details

    • execute

      public Set<io.kubernetes.client.Discovery.APIResource> execute() throws KubectlException
      Description copied from interface: Kubectl.Executable
      Run and retrieve the output from the kubectl helpers.
      Specified by:
      execute in interface Kubectl.Executable<Set<io.kubernetes.client.Discovery.APIResource>>
      Returns:
      the output, can be Void
      Throws:
      KubectlException - the kubectl exception
    • refreshDiscovery

      protected void refreshDiscovery() throws KubectlException
      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

      public KubectlApiResources apiClient(io.kubernetes.client.openapi.ApiClient apiClient)
    • skipDiscovery

      public KubectlApiResources skipDiscovery()