Skip to content

Commit 8217223

Browse files
adding imagepullsecrets support in helm chart (#1457)
* adding imagepullsecrets support * default list to empty * fixed text alignment * using ossfs2 tag from master * text alignment fix
1 parent 7ce3fe5 commit 8217223

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

deploy/charts/alibaba-cloud-csi-driver/templates/controller.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ spec:
2222
labels:
2323
app: csi-provisioner
2424
spec:
25+
{{- if $.Values.imagePullSecrets }}
26+
imagePullSecrets:
27+
{{- range $.Values.imagePullSecrets }}
28+
- name: {{ . }}
29+
{{- end }}
30+
{{- end }}
2531
affinity:
2632
nodeAffinity:
2733
{{- if .Values.controller.nodeAffinity }}

deploy/charts/alibaba-cloud-csi-driver/templates/plugin.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ spec:
2828
app.kubernetes.io/name: csi-plugin
2929
nodepool: {{ $key }}
3030
spec:
31+
{{- if $.Values.imagePullSecrets }}
32+
imagePullSecrets:
33+
{{- range $.Values.imagePullSecrets }}
34+
- name: {{ . }}
35+
{{- end }}
36+
{{- end }}
3137
tolerations:
3238
- operator: Exists
3339
affinity:

deploy/charts/alibaba-cloud-csi-driver/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,6 @@ images:
141141
ossfs2:
142142
repo: acs/csi-ossfs2
143143
tag: "v2.0.2.ack.2-17bc12e-aliyun"
144+
145+
# List of image pull secrets to use for pulling images.
146+
imagePullSecrets: [ ]

0 commit comments

Comments
 (0)