From f013997d7619f85d0e19dd568306183d457296f8 Mon Sep 17 00:00:00 2001 From: the-veloper Date: Fri, 5 Sep 2025 11:34:26 +0300 Subject: [PATCH 1/2] feat(image_secrets): add support for private registries --- deploy/helm/csi-s3/templates/csi-s3.yaml | 4 ++++ deploy/helm/csi-s3/templates/provisioner.yaml | 4 ++++ deploy/helm/csi-s3/values.yaml | 6 ++++++ 3 files changed, 14 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 7b5102c..264b14a 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 efabe17..9371f7d 100644 --- a/deploy/helm/csi-s3/values.yaml +++ b/deploy/helm/csi-s3/values.yaml @@ -48,3 +48,9 @@ tolerations: nodeSelector: {} kubeletPath: /var/lib/kubelet + +# Image pull secrets for private registries +# Example: +# imagePullSecrets: +# - name: myregistrykey +imagePullSecrets: [] From 387c88603e9ce8e0e1db856ac7ac3d5398efa7f4 Mon Sep 17 00:00:00 2001 From: the-veloper Date: Fri, 5 Sep 2025 11:36:40 +0300 Subject: [PATCH 2/2] chore: update readme --- deploy/helm/csi-s3/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/helm/csi-s3/README.md b/deploy/helm/csi-s3/README.md index 71abd1a..d6fac03 100644 --- a/deploy/helm/csi-s3/README.md +++ b/deploy/helm/csi-s3/README.md @@ -35,7 +35,8 @@ The following table lists all configuration parameters and their default values. | `secret.accessKey` | S3 Access Key | | | `secret.secretKey` | S3 Secret Key | | | `secret.endpoint` | Endpoint | https://storage.yandexcloud.net | -| `secret.region` | Region | | +| `secret.region` | Region | | | `tolerations.all` | Tolerate all taints by the CSI-S3 node driver (mounter) | false | | `tolerations.node` | Custom tolerations for the CSI-S3 node driver (mounter) | [] | | `tolerations.controller` | Custom tolerations for the CSI-S3 controller (provisioner) | [] | +| `imagePullSecrets` | List of image pull secrets | [] |