1
0
Fork 0

feat(helm): add image pull secret for private registries

This commit is contained in:
Vojtěch Mareš 2023-07-03 21:30:33 +02:00
parent 38c28dc73f
commit 4187512f88
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
6 changed files with 26 additions and 4 deletions

View file

@ -0,0 +1,12 @@
{{ if .Values.dockerconfigjsonBase64 }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-container-registry
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-15"
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ .Values.dockerconfigjsonBase64 }}
{{ end }}