feat(argocd-image-updater): Add ability to mount authentication scripts (#987)
This commit is contained in:
parent
12e25a37f9
commit
3e8463d1c5
5 changed files with 46 additions and 3 deletions
|
|
@ -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 }}
|
||||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue