@Singleton @Requires(env="k8s") @Requires(beans=KubernetesClient.class) @Requires(property="kubernetes.client.config-maps.watch",notEquals="false",defaultValue="true") public class KubernetesConfigMapWatcher extends java.lang.Object implements io.micronaut.context.event.ApplicationEventListener<io.micronaut.discovery.event.ServiceReadyEvent>
Environment
by adding or removing
PropertySource
s.Constructor and Description |
---|
KubernetesConfigMapWatcher(io.micronaut.context.env.Environment environment,
KubernetesClient client,
KubernetesConfiguration configuration,
java.util.concurrent.ExecutorService executorService,
io.micronaut.context.event.ApplicationEventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(io.micronaut.discovery.event.ServiceReadyEvent event) |
public KubernetesConfigMapWatcher(io.micronaut.context.env.Environment environment, KubernetesClient client, KubernetesConfiguration configuration, @Named(value="io") java.util.concurrent.ExecutorService executorService, io.micronaut.context.event.ApplicationEventPublisher eventPublisher)
environment
- the Environment
client
- the {KubernetesClient
}configuration
- the KubernetesConfiguration
executorService
- the IO ExecutorService
where the watch publisher will be scheduled oneventPublisher
- the ApplicationEventPublisher