feat(argocd-image-updater): Add custom environment variable
Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>
This commit is contained in:
parent
4c7e78ca18
commit
96db1cb2f1
2 changed files with 10 additions and 0 deletions
|
@ -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 }}"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue