@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>
Environment by adding or removing
PropertySources.| Constructor and Description |
|---|
KubernetesConfigMapWatcher(io.micronaut.context.env.Environment environment,
KubernetesClient client,
KubernetesConfiguration configuration,
java.util.concurrent.ExecutorService executorService) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(io.micronaut.discovery.event.ServiceStartedEvent event) |
public KubernetesConfigMapWatcher(io.micronaut.context.env.Environment environment,
KubernetesClient client,
KubernetesConfiguration configuration,
@Named(value="io")
java.util.concurrent.ExecutorService executorService)
environment - the Environmentclient - the {KubernetesClient}configuration - the KubernetesConfigurationexecutorService - the IO ExecutorService where the watch publisher will be scheduled on