feat: conditional namespace support to ClusterRoleBinding

Signed-off-by: leehosu <hosu4549@gmail.com>
This commit is contained in:
leehosu 2024-09-23 01:38:17 +09:00
parent b50a0731e7
commit 066f3fc153
No known key found for this signature in database
GPG key ID: 49693DFDB234F6E4
2 changed files with 13 additions and 0 deletions

View file

@ -13,4 +13,11 @@ subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: {{ include "argo-cd.controller.serviceAccountName" . }} name: {{ include "argo-cd.controller.serviceAccountName" . }}
namespace: {{ include "argo-cd.namespace" . }} namespace: {{ include "argo-cd.namespace" . }}
{{- if .Values.configs.params.applicationsetcontroller.namespaces }}
{{- range .Values.configs.params.applicationsetcontroller.namespaces }}
- kind: ServiceAccount
name: {{ include "argo-cd.controller.serviceAccountName" $root }}
namespace: {{ . }}
{{- end }}
{{- end }}
{{- end }} {{- end }}

View file

@ -279,6 +279,12 @@ configs:
# -- Enables use of the Progressive Syncs capability # -- Enables use of the Progressive Syncs capability
applicationsetcontroller.enable.progressive.syncs: false applicationsetcontroller.enable.progressive.syncs: false
# When specifying multiple namespaces, specify them in array form
applicationsetcontroller.namespaces: []
# - namespace1
# - namespace2
# - namespace3
# -- Enables [Applications in any namespace] # -- Enables [Applications in any namespace]
## List of additional namespaces where applications may be created in and reconciled from. ## List of additional namespaces where applications may be created in and reconciled from.
## The namespace where Argo CD is installed to will always be allowed. ## The namespace where Argo CD is installed to will always be allowed.