- All Implemented Interfaces:
- io.micronaut.context.event.ApplicationEventListener<io.micronaut.discovery.event.ServiceStartedEvent>, java.util.EventListener
@Singleton
@Requires(env="k8s") @Requires(beans=KubernetesClient.class) @Requires(property="micronaut.config-client.enabled",value="true",defaultValue="false")
public class KubernetesConfigMapWatcher
extends java.lang.Object
implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.discovery.event.ServiceStartedEvent>
Watches for ConfigMap changes and makes the appropriate changes to the Environment
by adding or removing
PropertySource
s.
- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal