1
0
mirror of https://github.com/rancher/norman.git synced 2025-05-12 10:14:29 +00:00

Check namespace for clusterName

This commit is contained in:
Darren Shepherd 2018-04-30 12:54:11 -07:00
parent 98500d10f5
commit 8d5d75c7b8

View File

@ -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
}