Skip to content

Commit

Permalink
Check namespace for clusterName
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Apr 30, 2018
1 parent 98500d1 commit 8d5d75c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controller/cluster_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 8d5d75c

Please sign in to comment.