Class K8sDynamicStubBase<O extends K8sDynamicModel,L extends K8sDynamicModelsBase<O>>

java.lang.Object
org.jdrupes.vmoperator.common.K8sGenericStub<O,L>
org.jdrupes.vmoperator.common.K8sDynamicStubBase<O,L>
Direct Known Subclasses:
K8sDynamicStub, VmDefinitionStub

public abstract class K8sDynamicStubBase<O extends K8sDynamicModel,L extends K8sDynamicModelsBase<O>> extends K8sGenericStub<O,L>
A stub for namespaced custom objects.

It uses a dynamic model (see K8sDynamicModel) for representing the object’s state and can therefore be used for any kind of object, especially custom objects.

  • Constructor Details

    • K8sDynamicStubBase

      public K8sDynamicStubBase(Class<O> objectClass, Class<L> objectListClass, DynamicTypeAdapterFactory<O,L> taf, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name)
      Instantiates a new dynamic stub.
      Parameters:
      objectClass - the object class
      objectListClass - the object list class
      client - the client
      context - the context
      namespace - the namespace
      name - the name