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:
parent
6735d66f1a
commit
a25cfd221c
4 changed files with 19 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue