Class OperatorResourceLister<ApiType extends KubernetesObject>
java.lang.Object
io.micronaut.kubernetes.client.openapi.operator.OperatorResourceLister<ApiType>
- Type Parameters:
ApiType- kubernetes api type
Operator lister simplifies retrieval of the resources from within the
SharedIndexInformer's cache.- Author:
- Pavol Gressa
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorResourceLister(@NonNull SharedIndexInformerFactory sharedIndexInformerFactory, @NonNull Class<ApiType> apiTypeClass, boolean allNamespaces) -
Method Summary
-
Constructor Details
-
Method Details
-
get
Get the kubernetes resource from theSharedIndexInformer's cache for the givenRequest. The operation returnsOptionalfor cases when the resource is not present in the cache.- Parameters:
request- the reconciliation request- Returns:
- optional resource in local cache
-