Class ConfigMapConfigProperties
java.lang.Object
org.springframework.cloud.kubernetes.commons.config.AbstractConfigProperties
org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties
@ConfigurationProperties("spring.cloud.kubernetes.config")
public class ConfigMapConfigProperties
extends AbstractConfigProperties
Config map configuration properties.
- Author:
- Ioannis Canellos, Isik Erhan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classConfig map source.Nested classes/interfaces inherited from class org.springframework.cloud.kubernetes.commons.config.AbstractConfigProperties
AbstractConfigProperties.RetryProperties -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix for Kubernetes secrets configuration properties.Fields inherited from class org.springframework.cloud.kubernetes.commons.config.AbstractConfigProperties
enabled, failFast, includeProfileSpecificSources, name, namespace, retry, useNameAsPrefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPaths()booleanvoidsetEnableApi(boolean enableApi) voidvoidsetSources(List<ConfigMapConfigProperties.Source> sources) Methods inherited from class org.springframework.cloud.kubernetes.commons.config.AbstractConfigProperties
getName, getNamespace, getRetry, isEnabled, isFailFast, isIncludeProfileSpecificSources, isUseNameAsPrefix, setEnabled, setFailFast, setIncludeProfileSpecificSources, setName, setNamespace, setRetry, setUseNameAsPrefix
-
Field Details
-
PREFIX
Prefix for Kubernetes secrets configuration properties.- See Also:
-
-
Constructor Details
-
ConfigMapConfigProperties
public ConfigMapConfigProperties()
-
-
Method Details
-
isEnableApi
public boolean isEnableApi() -
setEnableApi
public void setEnableApi(boolean enableApi) -
getPaths
-
setPaths
-
getSources
-
setSources
-
determineSources
- Returns:
- A list of Source to use. If the user has not specified any Source properties, then a single Source is constructed based on the supplied name and namespace. These are the actual name/namespace pairs that are used to create a ConfigMapPropertySource.
-
getConfigurationTarget
- Specified by:
getConfigurationTargetin classAbstractConfigProperties
-