Class Fabric8ConfigMapPropertySourceLocator
java.lang.Object
org.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator
org.springframework.cloud.kubernetes.fabric8.config.Fabric8ConfigMapPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
@Order(0)
public class Fabric8ConfigMapPropertySourceLocator
extends org.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator
A
PropertySourceLocator that uses config maps.- Author:
- Ioannis Canellos, Michael Moudatsos, Isik Erhan
-
Field Summary
Fields inherited from class org.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator
properties -
Constructor Summary
ConstructorsConstructorDescriptionFabric8ConfigMapPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties properties) Deprecated.Fabric8ConfigMapPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties properties, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.env.MapPropertySourcegetMapPropertySource(String applicationName, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties.NormalizedSource normalizedSource, String configurationTarget, org.springframework.core.env.ConfigurableEnvironment environment) Methods inherited from class org.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator
locate, locateCollection
-
Constructor Details
-
Fabric8ConfigMapPropertySourceLocator
@Deprecated public Fabric8ConfigMapPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties properties) Deprecated.This constructor is deprecated. Its usage might cause unexpected behavior when looking for different properties. For example, in general, if a namespace is not provided, we might look it up via other means: different documented environment variables or from a kubernetes client itself. Using this constructor might not reflect that. -
Fabric8ConfigMapPropertySourceLocator
public Fabric8ConfigMapPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties properties, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider)
-
-
Method Details
-
getMapPropertySource
protected org.springframework.core.env.MapPropertySource getMapPropertySource(String applicationName, org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties.NormalizedSource normalizedSource, String configurationTarget, org.springframework.core.env.ConfigurableEnvironment environment) - Specified by:
getMapPropertySourcein classorg.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator
-