robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
547 stars 79 forks source link

need clear namespace attribute #12

Closed maxospiquante closed 1 year ago

maxospiquante commented 1 year ago

I don't know if this a clean way, but it works. Attribute 'namespace' need to be clean before Handler process a next event, otherwise you get the namespace value of previous item ( for same pair eventType / api object )

arikalon1 commented 1 year ago

Thanks for the pr @maxospiquante We'll review and merge it shortly

RoiGlinik commented 1 year ago

Thanks @maxospiquante, I understood once i saw https://github.com/robusta-dev/kubewatch/blob/master/pkg/controller/controller.go#L668