robusta-dev / kubewatch

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

fix missing namespace or name with namespace/name format #24

Closed RoiGlinik closed 1 year ago

RoiGlinik commented 1 year ago

set the namespace to empty and let processItem function retrieve name and namespace using the key

this logic takes care of it https://github.com/robusta-dev/kubewatch/blob/master/pkg/controller/controller.go#L668