Class KubectlPatch<ApiType extends io.kubernetes.client.common.KubernetesObject>

java.lang.Object
io.kubernetes.client.extended.kubectl.KubectlPatch<ApiType>
All Implemented Interfaces:
Kubectl.Executable<ApiType>

public class KubectlPatch<ApiType extends io.kubernetes.client.common.KubernetesObject> extends Object implements Kubectl.Executable<ApiType>
  • Method Details

    • patchContent

      public KubectlPatch<ApiType> patchContent(io.kubernetes.client.custom.V1Patch patchContent)
    • patchType

      public KubectlPatch<ApiType> patchType(String patchType)
    • execute

      public ApiType 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<ApiType extends io.kubernetes.client.common.KubernetesObject>
      Returns:
      the output, can be Void
      Throws:
      KubectlException - the kubectl exception
    • name

      public KubectlPatch<ApiType> name(String name)
    • getGenericApi

      protected io.kubernetes.client.util.generic.GenericKubernetesApi<ApiType,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

      public KubectlPatch<ApiType> namespace(String namespace)
    • 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 KubectlPatch<ApiType> apiClient(io.kubernetes.client.openapi.ApiClient apiClient)
    • skipDiscovery

      public KubectlPatch<ApiType> skipDiscovery()