Skip to content

Commit 7708992

Browse files
fixed conditional including of role and role binding
1 parent df2f07e commit 7708992

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{- if (get .Values "app-proxy").singleNamespace }}
12
{{- include "argo-cd.namespaced-rbac.role" . }}
23
---
3-
{{- include "argo-cd.namespaced-rbac.rolebinding" . }}
4+
{{- include "argo-cd.namespaced-rbac.rolebinding" . }}
5+
{{- end }}

charts/gitops-runtime/templates/_components/cap-app-proxy/argo-cd/_role.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if (get .Values "app-proxy").singleNamespace }}
21
{{- define "argo-cd.namespaced-rbac.role" }}
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: Role
@@ -24,5 +23,4 @@ rules:
2423
- apiGroups: ["rbac.authorization.k8s.io"]
2524
resources: ["roles", "rolebindings"]
2625
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
27-
{{- end }}
2826
{{- end }}

charts/gitops-runtime/templates/_components/cap-app-proxy/argo-cd/_rolebinding.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if (get .Values "app-proxy").singleNamespace }}
21
{{- define "argo-cd.namespaced-rbac.rolebinding" }}
32
apiVersion: rbac.authorization.k8s.io/v1
43
kind: RoleBinding
@@ -16,5 +15,4 @@ subjects:
1615
- kind: ServiceAccount
1716
name: default
1817
namespace: {{ .Release.Namespace }}
19-
{{- end }}
2018
{{- end }}

0 commit comments

Comments
 (0)