Skip to content

Commit

Permalink
allow adding imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak committed Aug 19, 2020
1 parent 7cc457f commit 3ebeab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
initContainers:
- name: wait-for-db
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ image:
tag: 1.18.7
pullPolicy: IfNotPresent

imagePullSecrets: []

# This image should contain `nc` and a shell of some kind to do a simple loop.
initImage:
repository: busybox
Expand Down

0 comments on commit 3ebeab7

Please sign in to comment.