Class KubernetesConfiguration.KubernetesConfigMapsConfiguration
java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
io.micronaut.kubernetes.KubernetesConfiguration.AbstractConfigConfiguration
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 KubernetesConfiguration.AbstractConfigConfiguration
Kubernetes config maps configuration properties.
- Since:
- 1.0.0
- Author:
- Sergio del Amo, Álvaro Sánchez-Mariscal
-
Field Summary
FieldsFields inherited from class io.micronaut.discovery.DiscoveryConfiguration
DEFAULT_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetExceptionOnPodLabelsMissing(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.voidsetExcludes(Collection<String> excludes) voidsetIncludes(Collection<String> includes) voidvoidsetPodLabels(List<String> podLabels) Methods inherited from class KubernetesConfiguration.AbstractConfigConfiguration
getPaths, isUseApi, isWatch, setPaths, setUseApi, setWatchMethods inherited from class io.micronaut.discovery.DiscoveryConfiguration
isEnabled, setEnabled
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
KubernetesConfigMapsConfiguration
public KubernetesConfigMapsConfiguration()
-
-
Method Details
-
getIncludes
- Returns:
- the names to include
-
setIncludes
- Parameters:
includes- the names to include
-
getExcludes
- Returns:
- the names to exclude
-
setExcludes
- Parameters:
excludes- the names to exclude
-
getLabels
-
setLabels
-
getPodLabels
-
setPodLabels
-
isExceptionOnPodLabelsMissing
public boolean isExceptionOnPodLabelsMissing()- Returns:
- Flag to indicate that failure to find configured pod label is fatal (default
KubernetesConfiguration.AbstractKubernetesConfiguration.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 (KubernetesConfiguration.AbstractKubernetesConfiguration.DEFAULT_EXCEPTION_ON_POD_LABELS_MISSING).- Parameters:
exceptionOnPodLabelsMissing- flag to throw exception on pod labels missing
-