Skip to content

Commit 3ebeab7

Browse files
committed
allow adding imagePullSecrets
1 parent 7cc457f commit 3ebeab7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

chart/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
{{- toYaml . | nindent 8 }}
2828
{{- end }}
2929
spec:
30+
{{- if .Values.imagePullSecrets }}
31+
imagePullSecrets:
32+
{{- toYaml .Values.imagePullSecrets | nindent 8 }}
33+
{{- end }}
3034
initContainers:
3135
- name: wait-for-db
3236
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"

chart/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ image:
88
tag: 1.18.7
99
pullPolicy: IfNotPresent
1010

11+
imagePullSecrets: []
12+
1113
# This image should contain `nc` and a shell of some kind to do a simple loop.
1214
initImage:
1315
repository: busybox

0 commit comments

Comments
 (0)