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

    Constructors
    Constructor
    Description
    Fabric8SecretsPropertySourceLocator(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 Type
    Method
    Description
    protected org.springframework.core.env.MapPropertySource
    getPropertySource(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getPropertySource in class org.springframework.cloud.kubernetes.commons.config.SecretsPropertySourceLocator