Uses of Class
org.jdrupes.vmoperator.common.K8sClient
Package
Description
Classes and methods shared among the VM operator modules.
The following diagram shows the components of the manager application.
-
Uses of K8sClient in org.jdrupes.vmoperator.common
Modifier and TypeFieldDescriptionprotected final K8sClient
K8sClusterGenericStub.client
protected final K8sClient
K8sGenericStub.client
protected final K8sClient
K8sObserver.client
Modifier and TypeFieldDescriptionprotected BiConsumer
<K8sClient, io.kubernetes.client.util.Watch.Response<O>> K8sObserver.handler
Modifier and TypeMethodDescriptionK8sObserver.client()
Returns the client.K8sClient.with
(io.kubernetes.client.util.generic.options.PatchOptions patchOptions) Changes the default patch options.Modifier and TypeMethodDescriptionstatic io.kubernetes.client.Discovery.APIResource
K8sGenericStub.apiResource
(K8sClient client, io.kubernetes.client.apimachinery.GroupVersionKind gvk) Api resource.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sClusterGenericStub<O, L>>
RK8sClusterGenericStub.create
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, O model, K8sClusterGenericStub.GenericSupplier<O, L, R> provider) Get an object stub for a newly created object.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sGenericStub<O, L>>
RK8sGenericStub.create
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, O model, K8sGenericStub.GenericSupplier<O, L, R> provider) Get a namespaced object stub for a newly created object.static K8sV1SecretStub
Creates an object stub from a model.static K8sDynamicStub
K8sDynamicStub.createFromYaml
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, Reader yaml) Creates a stub from yaml.static VmDefinitionStub
VmDefinitionStub.createFromYaml
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, Reader yaml) Creates a stub from yaml.K8sClusterGenericStub.GenericSupplier.get
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String name) Gets a new stub.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sClusterGenericStub<O, L>>
RK8sClusterGenericStub.get
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.apimachinery.GroupVersionKind gvk, String name, K8sClusterGenericStub.GenericSupplier<O, L, R> provider) Get an object stub.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sClusterGenericStub<O, L>>
RK8sClusterGenericStub.get
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String name, K8sClusterGenericStub.GenericSupplier<O, L, R> provider) Get an object stub.static K8sDynamicStub
K8sDynamicStub.get
(K8sClient client, io.kubernetes.client.apimachinery.GroupVersionKind gvk, String namespace, String name) Get a dynamic object stub.static K8sDynamicStub
K8sDynamicStub.get
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name) Get a dynamic object stub.Gets a new stub.static K8sV1ConfigMapStub
Gets the stub for the given namespace and name.static K8sV1DeploymentStub
Gets the stub for the given namespace and name.static K8sV1NodeStub
Gets the stub for the given name.static K8sV1PodStub
Gets the stub for the given namespace and name.static K8sV1PvcStub
Gets the stub for the given namespace and name.static K8sV1SecretStub
Gets the stub for the given namespace and name.static K8sV1ServiceStub
Gets the stub for the given namespace and name.static K8sV1StatefulSetStub
Gets the stub for the given namespace and name.static VmDefinitionStub
VmDefinitionStub.get
(K8sClient client, io.kubernetes.client.apimachinery.GroupVersionKind gvk, String namespace, String name) Get a dynamic object stub.static VmDefinitionStub
VmDefinitionStub.get
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name) Get a dynamic object stub.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sClusterGenericStub<O, L>>
Collection<R> K8sClusterGenericStub.list
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, io.kubernetes.client.util.generic.options.ListOptions options, K8sClusterGenericStub.GenericSupplier<O, L, R> provider) Get the stubs for the objects that match the criteria from the given options.static Collection
<K8sDynamicStub> K8sDynamicStub.list
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace) Get the stubs for the objects in the given namespace.static Collection
<K8sDynamicStub> K8sDynamicStub.list
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.static <O extends io.kubernetes.client.common.KubernetesObject,
L extends io.kubernetes.client.common.KubernetesListObject, R extends K8sGenericStub<O, L>>
Collection<R> K8sGenericStub.list
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, io.kubernetes.client.util.generic.options.ListOptions options, K8sGenericStub.GenericSupplier<O, L, R> provider) Get the stubs for the objects in the given namespace that match the criteria from the given options.static Collection
<K8sV1NodeStub> Get the stubs for the objects that match the criteria from the given options.static Collection
<K8sV1PodStub> K8sV1PodStub.list
(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.static Collection
<K8sV1PvcStub> K8sV1PvcStub.list
(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.static Collection
<K8sV1SecretStub> K8sV1SecretStub.list
(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.static Collection
<K8sV1ServiceStub> K8sV1ServiceStub.list
(K8sClient client, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.static Collection
<VmDefinitionStub> VmDefinitionStub.list
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace) Get the stubs for the objects in the given namespace.static Collection
<VmDefinitionStub> VmDefinitionStub.list
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Get the stubs for the objects in the given namespace that match the criteria from the given options.Modifier and TypeMethodDescriptionK8sObserver.handler
(BiConsumer<K8sClient, io.kubernetes.client.util.Watch.Response<O>> handler) Sets the handler.ModifierConstructorDescriptionprotected
K8sClusterGenericStub
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String name) Instantiates a new stub for the object specified.K8sDynamicStub
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name) Instantiates a new dynamic stub.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.protected
K8sGenericStub
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name) Instantiates a new stub for the object specified.K8sObserver
(Class<O> objectClass, Class<L> objectListClass, K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, io.kubernetes.client.util.generic.options.ListOptions options) Create and start a new observer for objects in the given context (using preferred version) and namespace with the given options.protected
K8sV1ConfigMapStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1DeploymentStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1NodeStub
(K8sClient client, String name) Instantiates a new stub.protected
K8sV1PodStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1PvcStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1SecretStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1ServiceStub
(K8sClient client, String namespace, String name) Instantiates a new stub.protected
K8sV1StatefulSetStub
(K8sClient client, String namespace, String name) Instantiates a new stub.VmDefinitionStub
(K8sClient client, io.kubernetes.client.Discovery.APIResource context, String namespace, String name) Instantiates a new stub for VM defintions. -
Uses of K8sClient in org.jdrupes.vmoperator.manager
Modifier and TypeMethodDescriptionSets the client to be used.protected abstract void
AbstractMonitor.handleChange
(K8sClient client, io.kubernetes.client.util.Watch.Response<O> change) Handle an observed change.protected void
DisplaySecretMonitor.handleChange
(K8sClient client, io.kubernetes.client.util.Watch.Response<io.kubernetes.client.openapi.models.V1Secret> change) protected void
VmMonitor.handleChange
(K8sClient client, io.kubernetes.client.util.Watch.Response<VmDefinitionModel> response) -
Uses of K8sClient in org.jdrupes.vmoperator.manager.events
ModifierConstructorDescriptionVmChannel
(Channel mainChannel, EventPipeline pipeline, K8sClient client) Instantiates a new watch channel. -
Uses of K8sClient in org.jdrupes.vmoperator.runner.qemu