diff --git a/charts/latest/azuredisk-csi-driver-v1.3.0.tgz b/charts/latest/azuredisk-csi-driver-v1.3.0.tgz index 697d204bbb..5a282a1e54 100644 Binary files a/charts/latest/azuredisk-csi-driver-v1.3.0.tgz and b/charts/latest/azuredisk-csi-driver-v1.3.0.tgz differ diff --git a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml index 82d60845a9..9c113d777a 100755 --- a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml +++ b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-controller.yaml @@ -14,6 +14,10 @@ spec: {{ include "azuredisk.labels" . | indent 6 }} app: csi-azuredisk-controller spec: + {{- if .Values.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.imagePullSecrets | indent 8 }} + {{- end }} hostNetwork: true serviceAccountName: csi-azuredisk-controller-sa nodeSelector: diff --git a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml index 229fa67047..50c8236489 100755 --- a/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml +++ b/charts/latest/azuredisk-csi-driver/templates/csi-azuredisk-node.yaml @@ -14,6 +14,10 @@ spec: {{ include "azuredisk.labels" . | indent 6 }} app: csi-azuredisk-node spec: + {{- if .Values.imagePullSecrets }} + imagePullSecrets: +{{ toYaml .Values.imagePullSecrets | indent 8 }} + {{- end }} hostNetwork: true dnsPolicy: ClusterFirstWithHostNet serviceAccountName: csi-azuredisk-node-sa diff --git a/charts/latest/azuredisk-csi-driver/values.yaml b/charts/latest/azuredisk-csi-driver/values.yaml index 9890814d54..f231a1289c 100755 --- a/charts/latest/azuredisk-csi-driver/values.yaml +++ b/charts/latest/azuredisk-csi-driver/values.yaml @@ -78,3 +78,9 @@ kubelet: linuxPath: /var/lib/kubelet cloud: AzurePublicCloud + +## Reference to one or more secrets to be used when pulling images +## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ +## +imagePullSecrets: [] +# - name: "image-pull-secret"