Skip to content
Snippets Groups Projects
Unverified Commit f7738d74 authored by Francesco Ciocchetti's avatar Francesco Ciocchetti
Browse files

Set namespace to null for clusterwide resources and generate manifests

parent 9d4ba547
Branches
Tags
No related merge requests found
...@@ -146,7 +146,9 @@ function(params) { ...@@ -146,7 +146,9 @@ function(params) {
clusterRole: { clusterRole: {
apiVersion: 'rbac.authorization.k8s.io/v1', apiVersion: 'rbac.authorization.k8s.io/v1',
kind: 'ClusterRole', kind: 'ClusterRole',
metadata: p._metadata, metadata: p._metadata {
namespace:: null,
},
rules: [ rules: [
{ {
apiGroups: [''], apiGroups: [''],
...@@ -194,7 +196,9 @@ function(params) { ...@@ -194,7 +196,9 @@ function(params) {
clusterRoleBinding: { clusterRoleBinding: {
apiVersion: 'rbac.authorization.k8s.io/v1', apiVersion: 'rbac.authorization.k8s.io/v1',
kind: 'ClusterRoleBinding', kind: 'ClusterRoleBinding',
metadata: p._metadata, metadata: p._metadata {
namespace:: null,
},
roleRef: { roleRef: {
apiGroup: 'rbac.authorization.k8s.io', apiGroup: 'rbac.authorization.k8s.io',
kind: 'ClusterRole', kind: 'ClusterRole',
......
...@@ -8,7 +8,6 @@ metadata: ...@@ -8,7 +8,6 @@ metadata:
app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/part-of: kube-prometheus
app.kubernetes.io/version: 2.32.1 app.kubernetes.io/version: 2.32.1
name: prometheus-k8s name: prometheus-k8s
namespace: monitoring
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
......
...@@ -8,7 +8,6 @@ metadata: ...@@ -8,7 +8,6 @@ metadata:
app.kubernetes.io/part-of: kube-prometheus app.kubernetes.io/part-of: kube-prometheus
app.kubernetes.io/version: 2.32.1 app.kubernetes.io/version: 2.32.1
name: prometheus-k8s name: prometheus-k8s
namespace: monitoring
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment