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

    Constructors
    Constructor
    Description
    Fabric8ConfigMapPropertySourceLocator(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 Type
    Method
    Description
    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)
     

    Methods inherited from class org.springframework.cloud.kubernetes.commons.config.ConfigMapPropertySourceLocator

    locate, locateCollection

    Methods inherited from class java.lang.Object

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