feat: conditional namespace support to ClusterRoleBinding
Signed-off-by: leehosu <hosu4549@gmail.com>
This commit is contained in:
parent
b50a0731e7
commit
066f3fc153
2 changed files with 13 additions and 0 deletions
|
@ -13,4 +13,11 @@ subjects:
|
|||
- kind: ServiceAccount
|
||||
name: {{ include "argo-cd.controller.serviceAccountName" . }}
|
||||
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 }}
|
||||
|
|
|
@ -279,6 +279,12 @@ configs:
|
|||
# -- Enables use of the Progressive Syncs capability
|
||||
applicationsetcontroller.enable.progressive.syncs: false
|
||||
|
||||
# When specifying multiple namespaces, specify them in array form
|
||||
applicationsetcontroller.namespaces: []
|
||||
# - namespace1
|
||||
# - namespace2
|
||||
# - namespace3
|
||||
|
||||
# -- Enables [Applications in any namespace]
|
||||
## 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.
|
||||
|
|
Loading…
Reference in a new issue