Skip to content

Commit

Permalink
Hide namespace for prometheus clusterRole and clusterRolebinding
Browse files Browse the repository at this point in the history
  • Loading branch information
primeroz committed Jan 4, 2022
1 parent 9d4ba54 commit 0f1d7d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jsonnet/kube-prometheus/components/prometheus.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -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: [''],
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 0f1d7d7

Please sign in to comment.