From 3617c3b503f168df459bbc08f15b83d05ad716a9 Mon Sep 17 00:00:00 2001 From: Ruben Tsirunyan Date: Thu, 5 Sep 2024 10:39:56 +0400 Subject: [PATCH] Adding imagePullSecrets value to the helm chart --- deploy/helm/csi-s3/templates/csi-s3.yaml | 4 ++++ deploy/helm/csi-s3/templates/provisioner.yaml | 4 ++++ deploy/helm/csi-s3/values.yaml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/deploy/helm/csi-s3/templates/csi-s3.yaml b/deploy/helm/csi-s3/templates/csi-s3.yaml index 9732b6c..f2f8b95 100644 --- a/deploy/helm/csi-s3/templates/csi-s3.yaml +++ b/deploy/helm/csi-s3/templates/csi-s3.yaml @@ -50,6 +50,10 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccount: csi-s3 + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: driver-registrar image: {{ .Values.images.registrar }} diff --git a/deploy/helm/csi-s3/templates/provisioner.yaml b/deploy/helm/csi-s3/templates/provisioner.yaml index d8c4eb3..fc1d474 100644 --- a/deploy/helm/csi-s3/templates/provisioner.yaml +++ b/deploy/helm/csi-s3/templates/provisioner.yaml @@ -81,6 +81,10 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: csi-provisioner image: {{ .Values.images.provisioner }} diff --git a/deploy/helm/csi-s3/values.yaml b/deploy/helm/csi-s3/values.yaml index d53b880..c570668 100644 --- a/deploy/helm/csi-s3/values.yaml +++ b/deploy/helm/csi-s3/values.yaml @@ -7,6 +7,9 @@ images: # Main image csi: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-s3-driver:0.41.1 +# Image pull secrets for Docker images +imagePullSecrets: [] + storageClass: # Specifies whether the storage class should be created create: true