Class K8sV1PodStub

java.lang.Object
org.jdrupes.vmoperator.common.K8sGenericStub<io.kubernetes.client.openapi.models.V1Pod,io.kubernetes.client.openapi.models.V1PodList>
org.jdrupes.vmoperator.common.K8sV1PodStub

public class K8sV1PodStub extends K8sGenericStub<io.kubernetes.client.openapi.models.V1Pod,io.kubernetes.client.openapi.models.V1PodList>
A stub for pods (v1).
  • Field Details

    • CONTEXT

      public static final io.kubernetes.client.Discovery.APIResource CONTEXT
      The pods’ context.
  • Constructor Details

    • K8sV1PodStub

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

    • get

      public static K8sV1PodStub get(K8sClient client, String namespace, String name)
      Gets the stub for the given namespace and name.
      Parameters:
      client - the client
      namespace - the namespace
      name - the name
      Returns:
      the kpod stub
    • list

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