Package io.micronaut.kubernetes
Class KubernetesConfiguration.KubernetesSecretsConfiguration
java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
io.micronaut.kubernetes.KubernetesConfiguration.KubernetesSecretsConfiguration
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
- Enclosing class:
- KubernetesConfiguration
@ConfigurationProperties("secrets")
public static class KubernetesConfiguration.KubernetesSecretsConfiguration
extends io.micronaut.discovery.DiscoveryConfiguration
Kubernetes secrets configuration properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPaths()booleanbooleanbooleanisUseApi()voidsetEnabled(boolean enabled) voidsetExceptionOnPodLabelsMissing(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) voidvoidsetPaths(Collection<String> paths) voidsetPodLabels(List<String> podLabels) voidsetUseApi(boolean useApi)
-
Constructor Details
-
KubernetesSecretsConfiguration
public KubernetesSecretsConfiguration()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.micronaut.core.util.Toggleable- Overrides:
isEnabledin classio.micronaut.discovery.DiscoveryConfiguration
-
setEnabled
public void setEnabled(boolean enabled) - Overrides:
setEnabledin classio.micronaut.discovery.DiscoveryConfiguration- Parameters:
enabled- enabled flag.
-
getPaths
- Returns:
- paths where secrets are mounted
-
setPaths
- Parameters:
paths- where secrets are mounted
-
isUseApi
public boolean isUseApi()- Returns:
- whether to use the API to read secrets when
pathsis used.
-
setUseApi
public void setUseApi(boolean useApi) - Parameters:
useApi- whether to use the API to read secrets whenpathsis used.
-
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
- Returns:
- labels to match
-
setLabels
- Parameters:
labels- labels to match
-
getPodLabels
- Returns:
- podLabels to match
-
setPodLabels
- 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
-