mirror of
https://github.com/rancher/norman.git
synced 2025-08-31 06:35:09 +00:00
Check namespace for clusterName
This commit is contained in:
@@ -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
|
return clusterName == cluster
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user