Skip to content

Commit 9add838

Browse files
committed
Support multi-runtime-installation
1 parent 287a887 commit 9add838

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

charts/gitops-runtime/templates/argo-gateway/rbac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
{{- include "argo-gateway.labels" . | nindent 4 }}
1010
---
1111
apiVersion: rbac.authorization.k8s.io/v1
12-
kind: ClusterRole
12+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "Role" "ClusterRole" }}
1313
metadata:
1414
name: {{ include "argo-gateway.fullname" . }}
1515
labels:
@@ -49,14 +49,14 @@ rules:
4949
- patch
5050
---
5151
apiVersion: rbac.authorization.k8s.io/v1
52-
kind: ClusterRoleBinding
52+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
5353
metadata:
5454
name: {{ include "argo-gateway.fullname" . }}
5555
labels:
5656
{{- include "argo-gateway.labels" . | nindent 4 }}
5757
roleRef:
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" . }}
6161
subjects:
6262
- kind: ServiceAccount

charts/gitops-runtime/templates/event-reporters/cluster-event-reporter/rbac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- include "cluster-event-reporter.labels" . | nindent 4 }}
1212
---
1313
apiVersion: rbac.authorization.k8s.io/v1
14-
kind: ClusterRole
14+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "Role" "ClusterRole" }}
1515
metadata:
1616
name: {{ include "cluster-event-reporter.fullname" . }}
1717
labels:
@@ -29,14 +29,14 @@ rules:
2929
- '*'
3030
---
3131
apiVersion: rbac.authorization.k8s.io/v1
32-
kind: ClusterRoleBinding
32+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
3333
metadata:
3434
name: {{ include "cluster-event-reporter.fullname" . }}
3535
labels:
3636
{{- include "cluster-event-reporter.labels" . | nindent 4 }}
3737
roleRef:
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" . }}
4141
subjects:
4242
- kind: ServiceAccount

charts/gitops-runtime/templates/event-reporters/runtime-event-reporter/rbac.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
{{- include "runtime-event-reporter.labels" . | nindent 4 }}
1212
---
1313
apiVersion: rbac.authorization.k8s.io/v1
14-
kind: ClusterRole
14+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "Role" "ClusterRole" }}
1515
metadata:
1616
name: {{ include "runtime-event-reporter.fullname" . }}
1717
labels:
@@ -29,14 +29,14 @@ rules:
2929
- '*'
3030
---
3131
apiVersion: rbac.authorization.k8s.io/v1
32-
kind: ClusterRoleBinding
32+
kind: {{ $context.Values.global.runtime.singleNamespace | ternary "RoleBinding" "ClusterRoleBinding" }}
3333
metadata:
3434
name: {{ include "runtime-event-reporter.fullname" . }}
3535
labels:
3636
{{- include "runtime-event-reporter.labels" . | nindent 4 }}
3737
roleRef:
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" . }}
4141
subjects:
4242
- kind: ServiceAccount

0 commit comments

Comments
 (0)