Class KubernetesClientConfigReloadAutoConfiguration

java.lang.Object
org.springframework.cloud.kubernetes.client.config.reload.KubernetesClientConfigReloadAutoConfiguration

@Configuration(proxyBeanMethods=false) @ConditionalOnCloudPlatform(KUBERNETES) @ConditionalOnKubernetesReloadEnabled @ConditionalOnClass({org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration.class,org.springframework.cloud.context.restart.RestartEndpoint.class,org.springframework.cloud.context.refresh.ContextRefresher.class}) @AutoConfigureAfter({org.springframework.boot.actuate.autoconfigure.info.InfoEndpointAutoConfiguration.class,org.springframework.cloud.autoconfigure.RefreshEndpointAutoConfiguration.class,org.springframework.cloud.autoconfigure.RefreshAutoConfiguration.class,org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadPropertiesAutoConfiguration.class}) @Import(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadAutoConfiguration.class) public class KubernetesClientConfigReloadAutoConfiguration extends Object
Author:
Ryan Baxter
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    configMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientConfigMapPropertySourceLocator configMapPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider kubernetesNamespaceProvider)
    Event Based configMap ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    configMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientConfigMapPropertySourceLocator configMapPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.commons.util.TaskSchedulerWrapper<org.springframework.scheduling.TaskScheduler> taskScheduler)
    Polling configMap ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    secretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientSecretsPropertySourceLocator secretsPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider kubernetesNamespaceProvider)
    Event Based secrets ConfigurationChangeDetector.
    org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector
    secretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientSecretsPropertySourceLocator secretsPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.commons.util.TaskSchedulerWrapper<org.springframework.scheduling.TaskScheduler> taskScheduler)
    Polling secrets ConfigurationChangeDetector.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KubernetesClientConfigReloadAutoConfiguration

      public KubernetesClientConfigReloadAutoConfiguration()
  • Method Details

    • configMapPropertyChangePollingWatcher

      @Bean @ConditionalOnConfigMapsReloadEnabled @ConditionalOnBean(KubernetesClientConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientConfigMapPropertySourceLocator configMapPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.commons.util.TaskSchedulerWrapper<org.springframework.scheduling.TaskScheduler> taskScheduler)
      Polling configMap ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      configMapPropertySourceLocator - configMap property source locator
      Returns:
      a bean that listen to configuration changes and fire a reload.
    • secretsPropertyChangePollingWatcher

      @Bean @ConditionalOnSecretsReloadEnabled @ConditionalOnBean(KubernetesClientSecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.PollingReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangePollingWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientSecretsPropertySourceLocator secretsPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, org.springframework.cloud.commons.util.TaskSchedulerWrapper<org.springframework.scheduling.TaskScheduler> taskScheduler)
      Polling secrets ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      secretsPropertySourceLocator - secrets property source locator
      Returns:
      a bean that listen to configuration changes and fire a reload.
    • configMapPropertyChangeEventWatcher

      @Bean @ConditionalOnConfigMapsReloadEnabled @ConditionalOnBean(KubernetesClientConfigMapPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector configMapPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientConfigMapPropertySourceLocator configMapPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider kubernetesNamespaceProvider)
      Event Based configMap ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      configMapPropertySourceLocator - configMap property source locator
      Returns:
      a bean that listen to configMap change events and fire a reload.
    • secretsPropertyChangeEventWatcher

      @Bean @ConditionalOnSecretsReloadEnabled @ConditionalOnBean(KubernetesClientSecretsPropertySourceLocator.class) @Conditional(org.springframework.cloud.kubernetes.commons.config.reload.condition.EventReloadDetectionMode.class) public org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationChangeDetector secretsPropertyChangeEventWatcher(org.springframework.cloud.kubernetes.commons.config.reload.ConfigReloadProperties properties, org.springframework.cloud.kubernetes.commons.config.reload.ConfigurationUpdateStrategy strategy, KubernetesClientSecretsPropertySourceLocator secretsPropertySourceLocator, org.springframework.core.env.AbstractEnvironment environment, io.kubernetes.client.openapi.apis.CoreV1Api coreV1Api, org.springframework.cloud.kubernetes.commons.KubernetesNamespaceProvider kubernetesNamespaceProvider)
      Event Based secrets ConfigurationChangeDetector.
      Parameters:
      properties - config reload properties
      strategy - configuration update strategy
      secretsPropertySourceLocator - secrets property source locator
      Returns:
      a bean that listen to secrets change events and fire a reload.