feat: Support custom rules for the Application Controller Cluster Role (#730)

* feat: Support custom rules for the Application Controller Cluster Role

Signed-off-by: Lorelei McCollum <lorelei.mccollum@endurance.com>

* Add newline at end of file

Signed-off-by: Lorelei McCollum <lorelei.mccollum@endurance.com>
This commit is contained in:
loreleimccollum-work 2021-05-13 01:36:13 -04:00 committed by GitHub
parent 6735d66f1a
commit a25cfd221c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 2 deletions

View file

@ -6,6 +6,9 @@ metadata:
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
rules:
{{- if .Values.controller.clusterRoleRules.enabled }}
{{- toYaml .Values.controller.clusterRoleRules.rules | nindent 2 }}
{{ else }}
- apiGroups:
- '*'
resources:
@ -16,4 +19,5 @@ rules:
- '*'
verbs:
- '*'
{{- end }}
{{- end }}
{{- end }}