Class K8sV1PvcStub

java.lang.Object
org.jdrupes.vmoperator.common.K8sGenericStub<io.kubernetes.client.openapi.models.V1PersistentVolumeClaim,io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList>
org.jdrupes.vmoperator.common.K8sV1PvcStub

public class K8sV1PvcStub extends K8sGenericStub<io.kubernetes.client.openapi.models.V1PersistentVolumeClaim,io.kubernetes.client.openapi.models.V1PersistentVolumeClaimList>
A stub for pods (v1).
  • Field Details

    • CONTEXT

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

    • K8sV1PvcStub

      protected K8sV1PvcStub(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 K8sV1PvcStub 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<K8sV1PvcStub> 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