File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
charts/gitops-runtime/templates Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ metadata:
99 {{- include "argo-gateway.labels" . | nindent 4 }}
1010---
1111apiVersion : rbac.authorization.k8s.io/v1
12- kind : ClusterRole
12+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
1313metadata :
1414 name : {{ include "argo-gateway.fullname" . }}
1515 labels :
@@ -49,14 +49,14 @@ rules:
4949 - patch
5050---
5151apiVersion : rbac.authorization.k8s.io/v1
52- kind : ClusterRoleBinding
52+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" " ClusterRoleBinding" }}
5353metadata :
5454 name : {{ include "argo-gateway.fullname" . }}
5555 labels :
5656 {{- include "argo-gateway.labels" . | nindent 4 }}
5757roleRef :
5858 apiGroup : rbac.authorization.k8s.io
59- kind : ClusterRole
59+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
6060 name : {{ include "argo-gateway.fullname" . }}
6161subjects :
6262 - kind : ServiceAccount
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ metadata:
1111 {{- include "cluster-event-reporter.labels" . | nindent 4 }}
1212---
1313apiVersion : rbac.authorization.k8s.io/v1
14- kind : ClusterRole
14+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
1515metadata :
1616 name : {{ include "cluster-event-reporter.fullname" . }}
1717 labels :
@@ -29,14 +29,14 @@ rules:
2929 - ' *'
3030---
3131apiVersion : rbac.authorization.k8s.io/v1
32- kind : ClusterRoleBinding
32+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" " ClusterRoleBinding" }}
3333metadata :
3434 name : {{ include "cluster-event-reporter.fullname" . }}
3535 labels :
3636 {{- include "cluster-event-reporter.labels" . | nindent 4 }}
3737roleRef :
3838 apiGroup : rbac.authorization.k8s.io
39- kind : ClusterRole
39+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
4040 name : {{ include "cluster-event-reporter.fullname" . }}
4141subjects :
4242 - kind : ServiceAccount
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ metadata:
1111 {{- include "runtime-event-reporter.labels" . | nindent 4 }}
1212---
1313apiVersion : rbac.authorization.k8s.io/v1
14- kind : ClusterRole
14+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
1515metadata :
1616 name : {{ include "runtime-event-reporter.fullname" . }}
1717 labels :
@@ -29,14 +29,14 @@ rules:
2929 - ' *'
3030---
3131apiVersion : rbac.authorization.k8s.io/v1
32- kind : ClusterRoleBinding
32+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" " ClusterRoleBinding" }}
3333metadata :
3434 name : {{ include "runtime-event-reporter.fullname" . }}
3535 labels :
3636 {{- include "runtime-event-reporter.labels" . | nindent 4 }}
3737roleRef :
3838 apiGroup : rbac.authorization.k8s.io
39- kind : ClusterRole
39+ kind : {{ $context.Values.global.runtime.singleNamespace | ternary "Role" " ClusterRole" }}
4040 name : {{ include "runtime-event-reporter.fullname" . }}
4141subjects :
4242 - kind : ServiceAccount
You can’t perform that action at this time.
0 commit comments