<p>I'm trying to use micronaut kubernetes informer like what they explained in documentation . this is my code</p>
<pre><code>@Singleton
@Informer(apiType = V1ConfigMap.class, apiListType = 
V1ConfigMapList.class)
public class ConfigMapInformer implements 
 ResourceEventHandler&lt;V1ConfigMap&gt; {

@Override
public void onAdd(V1ConfigMap obj) {
    System.err.println(&quot;add config map&quot;);
 }

@Override
public void onUpdate(V1ConfigMap oldObj, V1ConfigMap newObj) {
    System.err.println(&quot;update configmap&quot;);
 }

@Override
public void onDelete(V1ConfigMap obj, boolean deletedFinalStateUnknown) 
 {
 }
}
</code></pre>
<p>And i'm using minikube for runing this application.
but after changing ConfigMaps nothing happens</p>
<p>this is my build.gradle dependencies section
<a href="https://i.stack.imgur.com/BV9jR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BV9jR.jpg" alt="enter image description here" /></a></p>
<p>and these are logs of pod</p>
<pre><code>←[36m06:16:02.327←[0;39m ←[1;30m[pool-3-thread-1]←[0;39m 
←[39mDEBUG←[0;39m ←[35mi.m.k.c.KubernetesConfigMapWatcher←[0;39m - 
 PropertySource modified by ConfigMap: employee
 ←[36m06:16:02.327←[0;39m ←[1;30m[pool-3-thread-1]←[0;39m ←[34mINFO 
 ←[0;39m ←[35mi.m.context.DefaultBeanContext←[0;39m - Reading bootstrap 
 environment configuration
 ←[36m06:16:02.328←[0;39m ←[1;30m[pool-3-thread-1]←[0;39m ←[34mINFO 
 ←[0;39m ←[35mi.m.d.c.c.DistributedPropertySourceLocator←[0;39m - 
  Resolved 1 configuration sources from client: 
  compositeConfigurationClient(kubernetes)
</code></pre>

Javad Behrouzi
<p>It's hard to guess without having the access to the source code. But there's an example informer app in the micronaut-kubernetes github <a href="https://github.com/micronaut-projects/micronaut-kubernetes/tree/master/examples/micronaut-kubernetes-informer" rel="nofollow noreferrer">https://github.com/micronaut-projects/micronaut-kubernetes/tree/master/examples/micronaut-kubernetes-informer</a> , check it out.</p>
<p>What could also help is complete <code>build.gradle</code> snippet.</p>
