Merge pull request #1566 from primeroz/fix/do-not-add-namespace-to-clusterwide-resources

Hide namespace for prometheus clusterRole and clusterRolebinding
This commit is contained in:
Philip Gough
2022-01-10 11:19:31 +00:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -146,7 +146,9 @@ function(params) {
clusterRole: {
apiVersion: 'rbac.authorization.k8s.io/v1',
kind: 'ClusterRole',
metadata: p._metadata,
metadata: p._metadata {
namespace:: null,
},
rules: [
{
apiGroups: [''],
@@ -194,7 +196,9 @@ function(params) {
clusterRoleBinding: {
apiVersion: 'rbac.authorization.k8s.io/v1',
kind: 'ClusterRoleBinding',
metadata: p._metadata,
metadata: p._metadata {
namespace:: null,
},
roleRef: {
apiGroup: 'rbac.authorization.k8s.io',
kind: 'ClusterRole',