Class KubernetesConfiguration.KubernetesConfigMapsConfiguration

java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
io.micronaut.kubernetes.KubernetesConfiguration.KubernetesConfigMapsConfiguration
All Implemented Interfaces:
io.micronaut.core.util.Toggleable
Enclosing class:
KubernetesConfiguration

@ConfigurationProperties("config-maps") public static class KubernetesConfiguration.KubernetesConfigMapsConfiguration extends io.micronaut.discovery.DiscoveryConfiguration
Kubernetes config maps configuration properties.
  • Field Details

  • Constructor Details

    • KubernetesConfigMapsConfiguration

      public KubernetesConfigMapsConfiguration()
  • Method Details

    • getPaths

      public Collection<String> getPaths()
      Returns:
      paths where config maps are mounted
    • setPaths

      public void setPaths(Collection<String> paths)
      Parameters:
      paths - where config maps are mounted
    • isUseApi

      public boolean isUseApi()
      Returns:
      whether to use the API to read config maps when paths is used.
    • setUseApi

      public void setUseApi(boolean useApi)
      Parameters:
      useApi - whether to use the API to read config maps when paths is used.
    • isWatch

      public boolean isWatch()
      Returns:
      whether to enable watching for the ConfigMap changes. Defaults to true.
    • setWatch

      public void setWatch(boolean watch)
      Parameters:
      watch - flag to watch for the ConfigMap changes.
    • getIncludes

      public Collection<String> getIncludes()
      Returns:
      the names to include
    • setIncludes

      public void setIncludes(Collection<String> includes)
      Parameters:
      includes - the names to include
    • getExcludes

      public Collection<String> getExcludes()
      Returns:
      the names to exclude
    • setExcludes

      public void setExcludes(Collection<String> excludes)
      Parameters:
      excludes - the names to exclude
    • getLabels

      public Map<String,String> getLabels()
      Returns:
      labels to match
    • setLabels

      public void setLabels(Map<String,String> labels)
      Parameters:
      labels - labels to match
    • getPodLabels

      public List<String> getPodLabels()
      Returns:
      podLabels to match
    • setPodLabels

      public void setPodLabels(List<String> podLabels)
      Parameters:
      podLabels - labels to match
    • isExceptionOnPodLabelsMissing

      public boolean isExceptionOnPodLabelsMissing()
      Returns:
      Flag to indicate that failure to find configured pod label is fatal (default DEFAULT_EXCEPTION_ON_POD_LABELS_MISSING).
    • setExceptionOnPodLabelsMissing

      public void setExceptionOnPodLabelsMissing(boolean exceptionOnPodLabelsMissing)
      If set to true an exception will be thrown if at least one of the configured pod labels is not found among the application's pod labels. Default value (DEFAULT_EXCEPTION_ON_POD_LABELS_MISSING).
      Parameters:
      exceptionOnPodLabelsMissing - flag to throw exception on pod labels missing