1
0
Fork 0

feat(chart): add registry secret for pulling from private registries

This commit is contained in:
Vojtěch Mareš 2022-05-19 14:47:26 +02:00
parent d09514d760
commit e2d974596d
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
3 changed files with 11 additions and 3 deletions

View file

@ -11,9 +11,9 @@ spec:
ttlSecondsAfterFinished: 300
template:
spec:
{{- with .Values.imagePullSecrets }}
{{- with .Values.image.pullSecretBase64 }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
- name: {{ include "wsj-standup.fullname" . }}-registry-credentials
{{- end }}
serviceAccountName: {{ include "wsj-standup.serviceAccountName" . }}
containers:

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "wsj-standup.fullname" . }}-registry-credentials
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: {{ .Values.image.pullSecretBase64 }}

View file

@ -3,8 +3,9 @@ image:
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
pullSecretBase64: null
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""