Package org.jdrupes.vmoperator.common
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
K8sGenericStub.GenericSupplier<O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sGenericStub<O, L>> -
Field Summary
Fields inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
client, context, name, namespace
-
Constructor Summary
-
Method Summary
Methods inherited from class org.jdrupes.vmoperator.common.K8sGenericStub
apiResource, apply, context, create, delete, group, kind, list, model, name, namespace, patch, patch, plural, toString, update, update, updateStatus, updateStatus, updateStatus, version
-
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 classobjectListClass
- the object list classclient
- the clientcontext
- the contextnamespace
- the namespacename
- the name
-