You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add volumes and volumeMounts values to the Helm chart for file-based credentials
Follow-up to #60. The chart now exposes `app.volumes` and `app.volumeMounts`, so a
user of the published chart can mount a credentials file for `adminSecretFileRef`
through `values.yaml`. `app.imagePullSecrets` moves onto the same pattern and loses
its `- {}` default.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/cluster-connection.md
+57-1Lines changed: 57 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,63 @@ spec:
75
75
76
76
> **Note:** The volume source can be any type that provides a file.
77
77
78
-
> **Note:** The Helm chart does not support extra volumes yet.
78
+
##### With the Helm chart
79
+
80
+
The chart exposes the `app.volumes` and `app.volumeMounts` values. Both take the raw Kubernetes syntax, so any volume source works. Pass them in your own values file:
See the [installation section](../README.md#helm-chart) of the README for the chart URL.
99
+
100
+
##### With the Secrets Store CSI driver
101
+
102
+
Use this option to read the credentials from an external secret store, for example AWS Secrets Manager. The chart does not create the `SecretProviderClass`, so you have to apply it yourself:
103
+
104
+
```yaml
105
+
apiVersion: secrets-store.csi.x-k8s.io/v1
106
+
kind: SecretProviderClass
107
+
metadata:
108
+
name: db-credentials
109
+
spec:
110
+
provider: aws
111
+
parameters:
112
+
objects: |
113
+
- objectName: "my/db/credentials"
114
+
objectAlias: "db-credentials.json"
115
+
```
116
+
117
+
Then reference it from the chart values:
118
+
119
+
```yaml
120
+
app:
121
+
volumes:
122
+
- name: db-credentials
123
+
csi:
124
+
driver: secrets-store.csi.k8s.io
125
+
readOnly: true
126
+
volumeAttributes:
127
+
secretProviderClass: db-credentials
128
+
volumeMounts:
129
+
- name: db-credentials
130
+
mountPath: /mnt/secrets
131
+
readOnly: true
132
+
```
133
+
134
+
> **Note:** The `SecretProviderClass` must live in the namespace of the operator.
0 commit comments