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:
parent
98500d10f5
commit
8d5d75c7b8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user