Package io.micronaut.kubernetes
Class KubernetesConfiguration.KubernetesDiscoveryConfiguration
java.lang.Object
io.micronaut.discovery.DiscoveryConfiguration
io.micronaut.kubernetes.KubernetesConfiguration.KubernetesDiscoveryConfiguration
- All Implemented Interfaces:
- io.micronaut.core.util.Toggleable
- Enclosing class:
- KubernetesConfiguration
@ConfigurationProperties("discovery")
public static class KubernetesConfiguration.KubernetesDiscoveryConfiguration
extends io.micronaut.discovery.DiscoveryConfiguration
Configuration class for the discovery client of Kubernetes.
- 
Field SummaryFieldsFields inherited from class io.micronaut.discovery.DiscoveryConfigurationDEFAULT_ENABLED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetMode()booleanvoidsetExceptionOnPodLabelsMissing(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) voidvoidvoidsetPodLabels(List<String> podLabels) Methods inherited from class io.micronaut.discovery.DiscoveryConfigurationisEnabled, setEnabled
- 
Field Details- 
DEFAULT_MODE- See Also:
 
- 
PREFIX- See Also:
 
 
- 
- 
Constructor Details- 
KubernetesDiscoveryConfigurationpublic KubernetesDiscoveryConfiguration()
 
- 
- 
Method Details- 
getMode- Returns:
- default service discovery mode
 
- 
setMode- Parameters:
- mode- default service discovery mode
 
- 
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
 
- 
isExceptionOnPodLabelsMissingpublic boolean isExceptionOnPodLabelsMissing()- Returns:
- Flag to indicate that failure to find configured pod label is fatal (default DEFAULT_EXCEPTION_ON_POD_LABELS_MISSING).
 
- 
setExceptionOnPodLabelsMissingpublic 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
 
 
-