Skip to content

Commit 7623c8a

Browse files
deploy: inject imagePullSecrets in ceph-csi-drivers charts
Signed-off-by: Niraj Yadav <niryadav@redhat.com>
1 parent 7c5b786 commit 7623c8a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

deploy/charts/ceph-csi-drivers/templates/serviceaccount.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ kind: ServiceAccount
88
metadata:
99
name: {{ $normalizedDriverName }}-ctrlplugin-sa
1010
namespace: {{ $root.Release.Namespace }}
11+
{{- with $root.Values.imagePullSecrets }}
12+
imagePullSecrets:
13+
{{ toYaml . | indent 2 }}
14+
{{- end }}
1115
---
1216
apiVersion: v1
1317
kind: ServiceAccount
1418
metadata:
1519
name: {{ $normalizedDriverName }}-nodeplugin-sa
1620
namespace: {{ $root.Release.Namespace }}
21+
{{- with $root.Values.imagePullSecrets }}
22+
imagePullSecrets:
23+
{{ toYaml . | indent 2 }}
24+
{{- end }}
1725
{{- end }}
1826
{{- end }}

deploy/charts/ceph-csi-drivers/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,3 +474,6 @@ drivers:
474474

475475
# List of tolerations for the controller plugin
476476
tolerations: []
477+
478+
# List of pull secret names that will be added to all serviceaccounts
479+
imagePullSecrets: []

docs/helm-charts/drivers-chart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ The following table lists the configurable parameters of the ceph-csi-drivers ch
156156
| `drivers.rbd.nodePlugin.tolerations` | | `[]` |
157157
| `drivers.rbd.nodePlugin.volumes` | | `[]` |
158158
| `drivers.rbd.snapshotPolicy` | | `"none"` |
159+
| `imagePullSecrets` | | `[]` |
159160
| `operatorConfig.create` | | `true` |
160161
| `operatorConfig.driverSpecDefaults.attachRequired` | | `true` |
161162
| `operatorConfig.driverSpecDefaults.cephFsClientType` | | `"kernel"` |

0 commit comments

Comments
 (0)