Class K8sV1NodeStub

java.lang.Object
org.jdrupes.vmoperator.common.K8sClusterGenericStub<io.kubernetes.client.openapi.models.V1Node,io.kubernetes.client.openapi.models.V1NodeList>
org.jdrupes.vmoperator.common.K8sV1NodeStub

public class K8sV1NodeStub extends K8sClusterGenericStub<io.kubernetes.client.openapi.models.V1Node,io.kubernetes.client.openapi.models.V1NodeList>
A stub for nodes (v1).
  • Field Details

    • CONTEXT

      public static final io.kubernetes.client.Discovery.APIResource CONTEXT
  • Constructor Details

    • K8sV1NodeStub

      protected K8sV1NodeStub(K8sClient client, String name)
      Instantiates a new stub.
      Parameters:
      client - the client
      name - the name
  • Method Details

    • get

      public static K8sV1NodeStub get(K8sClient client, String name)
      Gets the stub for the given name.
      Parameters:
      client - the client
      name - the name
      Returns:
      the config map stub
    • list

      public static Collection<K8sV1NodeStub> list(K8sClient client, io.kubernetes.client.util.generic.options.ListOptions options) throws io.kubernetes.client.openapi.ApiException
      Get the stubs for the objects that match the criteria from the given options.
      Parameters:
      client - the client
      options - the options
      Returns:
      the collection
      Throws:
      io.kubernetes.client.openapi.ApiException - the api exception