@Retention(value=RUNTIME)
@AroundConstruct
@Prototype
public @interface Informer
ResourceEventHandler
will cause the
SharedIndexInformer
will be created by ResourceEventHandlerConstructorInterceptor
.Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
ALL_NAMESPACES |
static java.lang.String |
RESOLVE_AUTOMATICALLY |
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends io.kubernetes.client.common.KubernetesListObject> |
apiListType
The resource list type.
|
java.lang.Class<? extends io.kubernetes.client.common.KubernetesObject> |
apiType
The resource type.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
apiGroup
The watched resource api group.
|
java.lang.String |
labelSelector
Informer label selector.
|
java.lang.Class<? extends java.util.function.Supplier<java.lang.String>> |
labelSelectorSupplier
Informer label selector supplier.
|
java.lang.String |
namespace
Watched resource namespace.
|
java.lang.String[] |
namespaces
Watched resource namespaces.
|
java.lang.Class<? extends java.util.function.Supplier<java.lang.String[]>> |
namespacesSupplier
Namespaces supplier bean class.
|
java.lang.String |
resourcePlural
The watched resource plural.
|
long |
resyncCheckPeriod
How often to check if the listener need a resync.
|
public abstract java.lang.Class<? extends io.kubernetes.client.common.KubernetesObject> apiType
public abstract java.lang.Class<? extends io.kubernetes.client.common.KubernetesListObject> apiListType
public abstract java.lang.String resourcePlural
V1ConfigMap
it
is configmaps
. To find the proper resource plural visit the Kubernetes API Reference.
By default, the api group is automatically evaluated by Discovery
.public abstract java.lang.String apiGroup
V1Job
it is
batch
. To find proper resource api group visit Kubernetes API Reference.
By default, the api group is automatically evaluated by Discovery
.public abstract java.lang.String namespace
NamespaceResolver
. To watch resources
from all namespaces configure this parameter to ALL_NAMESPACES
.public abstract java.lang.String[] namespaces
NamespaceResolver
.public abstract java.lang.Class<? extends java.util.function.Supplier<java.lang.String[]>> namespacesSupplier
public abstract long resyncCheckPeriod
DefaultSharedIndexInformer
public abstract java.lang.String labelSelector
public abstract java.lang.Class<? extends java.util.function.Supplier<java.lang.String>> labelSelectorSupplier