<p>I have an application running on gcp. I want to set up a mechanism to be notified if there's any change in the namespace. There is an option to use kubernetes Watch to monitor any changes in namespace. But I'm looking for something to create an event or get notification to java application for such a change in namespace. I searched but could not find anything relevant, are there any options to be notified on such namespace changes?</p>

<p>If you are looking for forwarding to use third party app you can use plugin : <a href="https://www.botkube.io/" rel="nofollow noreferrer">botkube</a></p>

<p>If you want to create application in java you can check for respetvice client library of it in official document </p>

<p><a href="https://kubernetes.io/docs/reference/using-api/client-libraries/" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/using-api/client-libraries/</a> </p>

<p>Java official client library for Kubernetes : <a href="https://github.com/kubernetes-client/java" rel="nofollow noreferrer">https://github.com/kubernetes-client/java</a></p>

<p>This is some good example or it you can also use default Kubernetes API and write custom code and run that contained in same Kubernetes cluster to monitor any changes in namespace.</p>
