feat(argocd-image-updater): Add custom environment variables (#874)

* feat(argocd-notifications): Add example for defaultTriggers (#871)

* extending chart by optional defaultTriggers

Signed-off-by: shortsn <shortsn@users.noreply.github.com>

* #871 adjustments according review comments

Signed-off-by: shortsn <shortsn@users.noreply.github.com>

* #871 rework using existing field

Signed-off-by: shortsn <shortsn@users.noreply.github.com>

* #871 fixing linebreaks

Signed-off-by: shortsn <shortsn@users.noreply.github.com>

* #871 adjusting version

Signed-off-by: shortsn <shortsn@users.noreply.github.com>
Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>

* feat(argocd-image-updater): Add custom environment variable

Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>

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

Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>

* Revert "feat(argocd-image-updater): Add custom environment variable"

This reverts commit c6146d942c97dc694aa7777ec73d649afba1b4ab.

Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>

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

Signed-off-by: Sergiy Gavrylenko <sgavrylenko@domovoy.org.ua>

* chore: Rework PR

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>

Co-authored-by: shortsn <shortsn@users.noreply.github.com>
Co-authored-by: Sergiy Gavrylenko <bigboo@bbq.agency>
Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
Co-authored-by: Marko Bevc <marko@scalefactory.com>
pull/913/head^2 argocd-image-updater-0.2.0
sgavrylenko 2021-09-16 21:59:39 +03:00 committed by GitHub
parent f10234f340
commit 258ad7fa64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: argocd-image-updater
description: A Helm chart for Argo CD Image Updater, a tool to automatically update the container images of Kubernetes workloads which are managed by Argo CD
type: application
version: 0.1.1
version: 0.2.0
appVersion: v0.10.1
home: https://github.com/argoproj-labs/argocd-image-updater
icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png
@ -15,4 +15,4 @@ maintainers:
url: https://argoproj.github.io/
annotations:
artifacthub.io/changes: |
- "[Fixed]: Add scratch space (emptyDir) for /tmp"
- "[Added]: Ability to provide custom environment variables"

View File

@ -67,6 +67,7 @@ The `config.registries` value can be used exactly as it looks in the documentati
| config.logLevel | string | `"info"` | ArgoCD Image Update log level |
| config.registries | list | `[]` | ArgoCD Image Updater registries list configuration. More information [here](https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/) |
| extraArgs | list | `[]` | Extra arguments for argocd-image-updater not defined in config.argocd |
| extraEnv | list | `[]` | Extra environment variables for argocd-image-updater |
| fullnameOverride | string | `""` | Global fullname (argocd-image-updater.fullname in _helpers.tpl) override |
| image.pullPolicy | string | `"Always"` | Default image pull policy |
| image.repository | string | `"argoprojlabs/argocd-image-updater"` | Default image repository |

View File

@ -51,6 +51,9 @@ spec:
optional: true
- name: IMAGE_UPDATER_LOGLEVEL
value: {{ .Values.config.logLevel }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 10 }}
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"

View File

@ -27,6 +27,11 @@ extraArgs: []
# - --once
# - --registries-conf-path /app/config/registries.conf
# -- Extra environment variables for argocd-image-updater
extraEnv: []
# - name: AWS_REGION
# value: "us-west-1"
config:
# Described in detail here https://argocd-image-updater.readthedocs.io/en/stable/install/running/#flags
argocd: