Skip to content

Commit

Permalink
add support for specifying imagePullPolicy in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
ossareh committed Jun 23, 2020
1 parent 0ae998c commit db64356
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helm/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ spec:
- name: efs-plugin
securityContext:
privileged: true
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: {{ printf "%s:%s" .Values.image.repository .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --endpoint=$(CSI_ENDPOINT)
- --logtostderr
Expand Down Expand Up @@ -64,6 +65,7 @@ spec:
failureThreshold: 5
- name: cs-driver-registrar
image: {{ printf "%s:%s" .Values.sidecars.nodeDriverRegistrarImage.repository .Values.sidecars.nodeDriverRegistrarImage.tag }}
imagePullPolicy: {{ .Values.sidecars.nodeDriverRegistrarImage.pullPolicy }}
args:
- --csi-address=$(ADDRESS)
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)
Expand All @@ -84,6 +86,7 @@ spec:
mountPath: /registration
- name: liveness-probe
image: {{ printf "%s:%s" .Values.sidecars.livenessProbeImage.repository .Values.sidecars.livenessProbeImage.tag }}
imagePullPolicy: {{ .Values.sidecars.livenessProbeImage.pullPolicy }}
args:
- --csi-address=/csi/csi.sock
- --health-port=9809
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ sidecars:
livenessProbeImage:
repository: quay.io/k8scsi/livenessprobe
tag: "v2.0.0"
pullPolicy: IfNotPresent
nodeDriverRegistrarImage:
repository: quay.io/k8scsi/csi-node-driver-registrar
tag: "v1.3.0"
pullPolicy: IfNotPresent

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit db64356

Please sign in to comment.