diff --git a/jsonnet/kube-prometheus/components/prometheus.libsonnet b/jsonnet/kube-prometheus/components/prometheus.libsonnet index 365a3aff55ed8d036689a16e93a49588e5533a62..c026ffec7436c08f1892ad42efd86ce1fe03d959 100644 --- a/jsonnet/kube-prometheus/components/prometheus.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus.libsonnet @@ -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', diff --git a/manifests/prometheus-clusterRole.yaml b/manifests/prometheus-clusterRole.yaml index 1f1f6bbdf57f291fae1f356d980494bfedda5abf..7bf33192c54f1c7512c0bef38accf3d5e2f6e37d 100644 --- a/manifests/prometheus-clusterRole.yaml +++ b/manifests/prometheus-clusterRole.yaml @@ -8,7 +8,6 @@ metadata: app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.32.1 name: prometheus-k8s - namespace: monitoring rules: - apiGroups: - "" diff --git a/manifests/prometheus-clusterRoleBinding.yaml b/manifests/prometheus-clusterRoleBinding.yaml index 89ec1fd3fa8cb41431072e4c505d52b7b0254a00..4dabee82a6319d5df5b51f151356b39434ac0528 100644 --- a/manifests/prometheus-clusterRoleBinding.yaml +++ b/manifests/prometheus-clusterRoleBinding.yaml @@ -8,7 +8,6 @@ metadata: app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/version: 2.32.1 name: prometheus-k8s - namespace: monitoring roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole