fix(argo-cd): Arrange for ApplicationSet in any namespace (#2945)
This commit is contained in:
parent
32a3541b7f
commit
687bedb946
4 changed files with 7 additions and 13 deletions
|
|
@ -13,12 +13,4 @@ subjects:
|
|||
- kind: ServiceAccount
|
||||
name: {{ template "argo-cd.applicationSet.serviceAccountName" . }}
|
||||
namespace: {{ include "argo-cd.namespace" . }}
|
||||
{{- $namespaces := index .Values.configs.params "applicationsetcontroller.namespaces" -}}
|
||||
{{- range $namespace := (split "," $namespaces) }}
|
||||
{{- if $namespace }}
|
||||
- kind: ServiceAccount
|
||||
name: {{ include "argo-cd.applicationSet.serviceAccountName" $ }}
|
||||
namespace: {{ $namespace | trim | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue