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
Predicatebased on theOpaquesecret type that needs to be matched to returntrue
-
getIncludesFilter
- Parameters:
includes- the objects to include- Returns:
- a
Predicatebased on a collection of object names to include
-
getExcludesFilter
- Parameters:
excludes- the objects to excludes- Returns:
- a
Predicatebased on a collection of object names to exclude
-
getLabelsFilter
- Parameters:
labels- the labels to include- Returns:
- a
Predicatebased on labels the kubernetes objects has to match to returntrue
-