Class KubernetesUtils

java.lang.Object
io.micronaut.kubernetes.client.openapi.util.KubernetesUtils

@Internal public class KubernetesUtils extends Object
Utility class with methods to help with ConfigMaps and Secrets.
  • Constructor Details

    • KubernetesUtils

      public KubernetesUtils()
  • Method Details

    • getIncludeOpaqueSecretTypeFilter

      public static Predicate<V1Secret> getIncludeOpaqueSecretTypeFilter()
      Returns:
      a Predicate based on the Opaque secret type that needs to be matched to return true
    • getIncludesFilter

      public static Predicate<KubernetesObject> getIncludesFilter(Collection<String> includes)
      Parameters:
      includes - the objects to include
      Returns:
      a Predicate based on a collection of object names to include
    • getExcludesFilter

      public static Predicate<KubernetesObject> getExcludesFilter(Collection<String> excludes)
      Parameters:
      excludes - the objects to excludes
      Returns:
      a Predicate based on a collection of object names to exclude
    • getLabelsFilter

      public static Predicate<KubernetesObject> getLabelsFilter(Map<String,String> labels)
      Parameters:
      labels - the labels to include
      Returns:
      a Predicate based on labels the kubernetes objects has to match to return true