diff --git a/charts/argocd-image-updater/Chart.yaml b/charts/argocd-image-updater/Chart.yaml index 03ff8d96..a5b2ecd7 100644 --- a/charts/argocd-image-updater/Chart.yaml +++ b/charts/argocd-image-updater/Chart.yaml @@ -2,8 +2,8 @@ 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.7.0 -appVersion: v0.11.3 +version: 0.8.0 +appVersion: v0.12.0 home: https://github.com/argoproj-labs/argocd-image-updater icon: https://argocd-image-updater.readthedocs.io/en/stable/assets/logo.png keywords: @@ -15,4 +15,4 @@ maintainers: url: https://argoproj.github.io/ annotations: artifacthub.io/changes: | - - "[Added]: Ability to manage secret containing the ArgoCD API token" + - "[Changed]: Update to argocd-image-updater v0.12" diff --git a/charts/argocd-image-updater/README.md b/charts/argocd-image-updater/README.md index a5697096..7d80daac 100644 --- a/charts/argocd-image-updater/README.md +++ b/charts/argocd-image-updater/README.md @@ -83,11 +83,12 @@ The `config.registries` value can be used exactly as it looks in the documentati | config.gitCommitUser | string | `""` | Username to use for Git commits | | 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.sshConfig | object | `{}` | ArgoCD Image Updater ssh client parameter configuration. | | extraArgs | list | `[]` | Extra arguments for argocd-image-updater not defined in `config.argocd`. If a flag contains both key and value, they need to be split to a new entry | | 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 | +| image.repository | string | `"quay.io/argoprojlabs/argocd-image-updater"` | Default image repository | | image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion | | imagePullSecrets | list | `[]` | ImagePullSecrets for the image updater deployment | | metrics.enabled | bool | `false` | Deploy metrics service | @@ -113,6 +114,7 @@ The `config.registries` value can be used exactly as it looks in the documentati | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | tolerations | list | `[]` | Kubernetes toleration settings for the deployment | +| updateStrategy | object | `{"type":"Recreate"}` | The deployment strategy to use to replace existing pods with new ones | ---------------------------------------------- Autogenerated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs) diff --git a/charts/argocd-image-updater/templates/configmap-sshconfig.yaml b/charts/argocd-image-updater/templates/configmap-sshconfig.yaml new file mode 100644 index 00000000..548f3100 --- /dev/null +++ b/charts/argocd-image-updater/templates/configmap-sshconfig.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + labels: + {{- include "argocd-image-updater.labels" . | nindent 4 }} + name: argocd-image-updater-ssh-config +data: + {{- with .Values.config.sshConfig }} + {{- toYaml . | nindent 2 }} + {{- end }} diff --git a/charts/argocd-image-updater/templates/deployment.yaml b/charts/argocd-image-updater/templates/deployment.yaml index 9c414072..a80d26be 100644 --- a/charts/argocd-image-updater/templates/deployment.yaml +++ b/charts/argocd-image-updater/templates/deployment.yaml @@ -9,6 +9,8 @@ spec: selector: matchLabels: {{- include "argocd-image-updater.selectorLabels" . | nindent 6 }} + strategy: + {{- .Values.updateStrategy | toYaml | nindent 4 }} template: metadata: annotations: @@ -28,7 +30,7 @@ spec: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} - command: + command: - /usr/local/bin/argocd-image-updater - run {{- with .Values.extraArgs }} @@ -130,6 +132,8 @@ spec: name: tmp-dir - mountPath: /app/config/ssh name: ssh-known-hosts + - mountPath: /app/.ssh + name: ssh-config {{- if .Values.authScripts.enabled }} - mountPath: /scripts name: authscripts @@ -156,6 +160,10 @@ spec: name: argocd-ssh-known-hosts-cm optional: true name: ssh-known-hosts + - configMap: + name: argocd-image-updater-ssh-config + optional: true + name: ssh-config {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/argocd-image-updater/values.yaml b/charts/argocd-image-updater/values.yaml index bca186ca..d6ebd232 100644 --- a/charts/argocd-image-updater/values.yaml +++ b/charts/argocd-image-updater/values.yaml @@ -2,12 +2,15 @@ replicaCount: 1 image: # -- Default image repository - repository: argoprojlabs/argocd-image-updater + repository: quay.io/argoprojlabs/argocd-image-updater # -- Default image pull policy pullPolicy: Always # -- Overrides the image tag whose default is the chart appVersion tag: "" +# -- The deployment strategy to use to replace existing pods with new ones +updateStrategy: + type: Recreate # -- ImagePullSecrets for the image updater deployment imagePullSecrets: [] # -- Global name (argocd-image-updater.name in _helpers.tpl) override @@ -96,6 +99,14 @@ config: # credentials: ext:/scripts/auth1.sh # credsexpire: 10h + # -- ArgoCD Image Updater ssh client parameter configuration. + sshConfig: + {} + # config: | + # Host * + # PubkeyAcceptedAlgorithms +ssh-rsa + # HostkeyAlgorithms +ssh-rsa + # whether to mount authentication scripts, if enabled, the authentication scripts will be mounted on /scripts that can be used to authenticate with registries (ECR) # refer to https://argocd-image-updater.readthedocs.io/en/stable/configuration/registries/#specifying-credentials-for-accessing-container-registries for more info authScripts: