build(helm): add support for "easy image pull secrets"
This commit is contained in:
parent
6a0621e8b4
commit
9d3505d299
3 changed files with 11 additions and 4 deletions
|
|
@ -20,9 +20,9 @@ spec:
|
|||
labels:
|
||||
{{- include "static-site.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
{{- if .Values.image.pullSecretBase64 }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
- name: {{ include "static-site.fullname" . }}-registry-credentials
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "static-site.serviceAccountName" . }}
|
||||
securityContext:
|
||||
|
|
|
|||
7
deploy/charts/static-site/templates/registry-secret.yaml
Normal file
7
deploy/charts/static-site/templates/registry-secret.yaml
Normal 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 }}
|
||||
Reference in a new issue