Class Fabric8BootstrapConfiguration

java.lang.Object
org.springframework.cloud.kubernetes.fabric8.config.Fabric8BootstrapConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnKubernetesEnabled @Import({org.springframework.cloud.kubernetes.commons.KubernetesCommonsAutoConfiguration.class,org.springframework.cloud.kubernetes.fabric8.Fabric8AutoConfiguration.class}) @ConditionalOnClass({io.fabric8.kubernetes.api.model.ConfigMap.class,io.fabric8.kubernetes.api.model.Secret.class}) @AutoConfigureAfter(org.springframework.cloud.kubernetes.commons.config.KubernetesBootstrapConfiguration.class) public class Fabric8BootstrapConfiguration extends Object
Auto configuration that reuses Kubernetes config maps as property sources.
Author:
Ioannis Canellos
  • Constructor Details

    • Fabric8BootstrapConfiguration

      public Fabric8BootstrapConfiguration()
  • Method Details

    • provider

      @Bean public org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider(org.springframework.core.env.Environment env)
    • configMapPropertySourceLocator

      @Bean @ConditionalOnKubernetesConfigEnabled @ConditionalOnKubernetesConfigRetryDisabled public Fabric8ConfigMapPropertySourceLocator configMapPropertySourceLocator(org.springframework.cloud.kubernetes.commons.config.ConfigMapConfigProperties properties, io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider)
    • secretsPropertySourceLocator

      @Bean @ConditionalOnKubernetesSecretsEnabled @ConditionalOnKubernetesSecretsRetryDisabled public Fabric8SecretsPropertySourceLocator secretsPropertySourceLocator(org.springframework.cloud.kubernetes.commons.config.SecretsConfigProperties properties, io.fabric8.kubernetes.client.KubernetesClient client, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider provider)