diff --git a/controller/cluster_check.go b/controller/cluster_check.go index a548f96c..0389ddfd 100644 --- a/controller/cluster_check.go +++ b/controller/cluster_check.go @@ -39,6 +39,11 @@ func ObjectInCluster(cluster string, obj interface{}) bool { } } } + if clusterName == "" { + if c := getValue(obj, "Namespace"); c.IsValid() { + clusterName = c.String() + } + } return clusterName == cluster }