chore: Rework PR

Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
Marco Kilchhofer 2021-09-16 18:49:40 +02:00
parent 2988f6fc94
commit 3570c64b1b
3 changed files with 8 additions and 9 deletions

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.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/) | | 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 | | 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 | | fullnameOverride | string | `""` | Global fullname (argocd-image-updater.fullname in _helpers.tpl) override |
| image.pullPolicy | string | `"Always"` | Default image pull policy | | image.pullPolicy | string | `"Always"` | Default image pull policy |
| image.repository | string | `"argoprojlabs/argocd-image-updater"` | Default image repository | | image.repository | string | `"argoprojlabs/argocd-image-updater"` | Default image repository |

View file

@ -51,11 +51,8 @@ spec:
optional: true optional: true
- name: IMAGE_UPDATER_LOGLEVEL - name: IMAGE_UPDATER_LOGLEVEL
value: {{ .Values.config.logLevel }} value: {{ .Values.config.logLevel }}
{{- if .Values.config.customEnvVariables }} {{- with .Values.extraEnv }}
{{- range $key, $value := .Values.config.customEnvVariables }} {{- toYaml . | nindent 10 }}
- name: {{ $key }}
value: {{ $value | quote }}
{{- end }}
{{- end }} {{- end }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}

View file

@ -27,6 +27,11 @@ extraArgs: []
# - --once # - --once
# - --registries-conf-path /app/config/registries.conf # - --registries-conf-path /app/config/registries.conf
# -- Extra environment variables for argocd-image-updater
extraEnv: []
# - name: AWS_REGION
# value: "us-west-1"
config: config:
# Described in detail here https://argocd-image-updater.readthedocs.io/en/stable/install/running/#flags # Described in detail here https://argocd-image-updater.readthedocs.io/en/stable/install/running/#flags
argocd: argocd:
@ -39,10 +44,6 @@ config:
# -- If specified, use an unencrypted HTTP connection to the ArgoCD API instead of TLS. # -- If specified, use an unencrypted HTTP connection to the ArgoCD API instead of TLS.
plaintext: false 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 # -- ArgoCD Image Update log level
logLevel: "info" logLevel: "info"