Class K8sV1ServiceStub

java.lang.Object
org.jdrupes.vmoperator.common.K8sGenericStub<io.kubernetes.client.openapi.models.V1Service,io.kubernetes.client.openapi.models.V1ServiceList>
org.jdrupes.vmoperator.common.K8sV1ServiceStub

public class K8sV1ServiceStub extends K8sGenericStub<io.kubernetes.client.openapi.models.V1Service,io.kubernetes.client.openapi.models.V1ServiceList>
A stub for secrets (v1).
  • Field Details

    • CONTEXT

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

    • K8sV1ServiceStub

      protected K8sV1ServiceStub(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 K8sV1ServiceStub 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 config map stub
    • list

      public static Collection<K8sV1ServiceStub> 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