feat(argocd-image-updater): Add ability to mount authentication scripts (#987)

This commit is contained in:
Niels ten Boom 2021-11-15 23:19:03 +00:00 committed by GitHub
parent 12e25a37f9
commit 3e8463d1c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 3 deletions

View file

@ -0,0 +1,10 @@
{{- if .Values.authScripts.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
labels:
{{- include "argocd-image-updater.labels" . | nindent 4 }}
name: argocd-image-updater-authscripts
data:
{{- toYaml .Values.authScripts.scripts | nindent 2}}
{{- end }}

View file

@ -84,6 +84,10 @@ spec:
name: registries-conf
- mountPath: /tmp
name: tmp-dir
{{- if .Values.authScripts.enabled }}
- mountPath: /scripts
name: authscripts
{{- end }}
volumes:
- configMap:
items:
@ -91,6 +95,12 @@ spec:
path: registries.conf
name: argocd-image-updater-config
name: registries-conf
{{- if .Values.authScripts.enabled }}
- configMap:
defaultMode: 0777
name: argocd-image-updater-authscripts
name: authscripts
{{- end }}
- emptyDir: {}
name: tmp-dir
{{- with .Values.nodeSelector }}