feat(argo-cd): Set aggregate roles only for using resources, with argocdextensions also (#1679)

Signed-off-by: Hyeonmin Park <hyeonmin.park@kennysoft.kr>

Signed-off-by: Hyeonmin Park <hyeonmin.park@kennysoft.kr>
Co-authored-by: Petr Drastil <petr.drastil@gmail.com>
Co-authored-by: Aikawa <yu.croco@gmail.com>
This commit is contained in:
Hyeonmin Park 2022-12-02 23:47:51 +09:00 committed by GitHub
parent 216a52d341
commit 34a33c967f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View file

@ -11,7 +11,12 @@ rules:
- argoproj.io
resources:
- applications
{{- if .Values.applicationSet.enabled }}
- applicationsets
{{- end }}
{{- if .Values.server.extensions.enabled }}
- argocdextensions
{{- end }}
- appprojects
verbs:
- get
@ -31,7 +36,12 @@ rules:
- argoproj.io
resources:
- applications
{{- if .Values.applicationSet.enabled }}
- applicationsets
{{- end }}
{{- if .Values.server.extensions.enabled }}
- argocdextensions
{{- end }}
- appprojects
verbs:
- create
@ -56,7 +66,12 @@ rules:
- argoproj.io
resources:
- applications
{{- if .Values.applicationSet.enabled }}
- applicationsets
{{- end }}
{{- if .Values.server.extensions.enabled }}
- argocdextensions
{{- end }}
- appprojects
verbs:
- create