feat(argocd-image-updater): Add custom environment variables into deployment

Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>
This commit is contained in:
Sergiy Gavrylenko 2021-08-19 00:31:26 +03:00
parent 64777b1446
commit c83aaf6142
2 changed files with 10 additions and 0 deletions

View file

@ -51,6 +51,12 @@ spec:
optional: true
- name: IMAGE_UPDATER_LOGLEVEL
value: {{ .Values.config.logLevel }}
{{- if .Values.config.customEnvVariables }}
{{- range $key, $value := .Values.config.customEnvVariables }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

View file

@ -39,6 +39,10 @@ config:
# -- If specified, use an unencrypted HTTP connection to the ArgoCD API instead of TLS.
plaintext: false
customEnvVariables:
# Add some custom variables e.g. set AWS region during retrieve the ECR token
# AWS_REGION: us-west-1
# -- ArgoCD Image Update log level
logLevel: "info"