Class KubectlDrain

java.lang.Object
io.kubernetes.client.extended.kubectl.KubectlCordon
io.kubernetes.client.extended.kubectl.KubectlDrain
All Implemented Interfaces:
Kubectl.Executable<io.kubernetes.client.openapi.models.V1Node>

public class KubectlDrain extends KubectlCordon
  • Method Details

    • gracePeriod

      public KubectlDrain gracePeriod(int gracePeriodSeconds)
    • force

      public KubectlDrain force()
    • ignoreDaemonSets

      public KubectlDrain ignoreDaemonSets()
    • execute

      public io.kubernetes.client.openapi.models.V1Node 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<io.kubernetes.client.openapi.models.V1Node>
      Overrides:
      execute in class KubectlCordon
      Returns:
      the output, can be Void
      Throws:
      KubectlException - the kubectl exception
    • name

      public KubectlCordon name(String name)
    • getGenericApi

      protected io.kubernetes.client.util.generic.GenericKubernetesApi<io.kubernetes.client.openapi.models.V1Node,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 KubectlCordon 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 KubectlCordon apiClient(io.kubernetes.client.openapi.ApiClient apiClient)
    • skipDiscovery

      public KubectlCordon skipDiscovery()