Using k8s.io watch api for continuously running the program


#1

I am using “k8s.io/client-go/tools/cache” for creating a new informer which also implements the ResourceHandlerEvents. The requirement is to watch on the resource changes all the time, but the program gets exited. I can see that the controller returned by Informer can be Run which returns channel. Can anyone inform how the channel can be used to listen continuously?