Class Fabric8SecretsPropertySourceLocator
java.lang.Object
org.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator
org.springframework.cloud.kubernetes.fabric8.config.Fabric8SecretsPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
@Order(1)
public class Fabric8SecretsPropertySourceLocator
extends org.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator
Kubernetes
PropertySourceLocator for secrets.- Author:
- l burgazzoli, Haytham Mohamed, Isik Erhan
-
Field Summary
Fields inherited from class org.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator
properties -
Constructor Summary
ConstructorsConstructorDescriptionFabric8SecretsPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties properties) Deprecated.Fabric8SecretsPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties properties, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.env.MapPropertySourcegetPropertySource(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties.NormalizedSource normalizedSource, String configurationTarget) Methods inherited from class org.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator
locate, locateCollection, putPathConfig
-
Constructor Details
-
Fabric8SecretsPropertySourceLocator
@Deprecated public Fabric8SecretsPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties 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. -
Fabric8SecretsPropertySourceLocator
public Fabric8SecretsPropertySourceLocator(io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties properties, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider)
-
-
Method Details
-
getPropertySource
protected org.springframework.core.env.MapPropertySource getPropertySource(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties.NormalizedSource normalizedSource, String configurationTarget) - Specified by:
getPropertySourcein classorg.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator
-