feat(helm): add image pull secret for private registries
This commit is contained in:
parent
38c28dc73f
commit
4187512f88
6 changed files with 26 additions and 4 deletions
12
charts/backoffice/templates/secret-container-registry.yaml
Normal file
12
charts/backoffice/templates/secret-container-registry.yaml
Normal 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 }}
|
||||
Reference in a new issue