Class KubernetesUtils
java.lang.Object
io.micronaut.kubernetes.client.openapi.util.KubernetesUtils
Utility class with methods to help with ConfigMaps and Secrets.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<KubernetesObject>
getExcludesFilter
(Collection<String> excludes) static Predicate<KubernetesObject>
getIncludesFilter
(Collection<String> includes) static Predicate<KubernetesObject>
getLabelsFilter
(Map<String, String> labels)
-
Constructor Details
-
KubernetesUtils
public KubernetesUtils()
-
-
Method Details
-
getIncludeOpaqueSecretTypeFilter
- Returns:
- a
Predicate
based on theOpaque
secret type that needs to be matched to returntrue
-
getIncludesFilter
- Parameters:
includes
- the objects to include- Returns:
- a
Predicate
based on a collection of object names to include
-
getExcludesFilter
- Parameters:
excludes
- the objects to excludes- Returns:
- a
Predicate
based on a collection of object names to exclude
-
getLabelsFilter
- Parameters:
labels
- the labels to include- Returns:
- a
Predicate
based on labels the kubernetes objects has to match to returntrue
-