Skip to content

Commit 62f36b0

Browse files
committed
Fix multiple secret files volumes mounting in a Deployment
1 parent d35a7a8 commit 62f36b0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: servicetpl
33
description: A Helm chart for services running on Kubernetes
44

5-
version: 0.16.1
5+
version: 0.16.2

templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ spec:
9191
volumeMounts:
9292
{{- range $key, $val := .Values.secrets_volume }}
9393
- name: secrets
94-
mountPath: "/var/run/secrets/"
94+
mountPath: /var/run/secrets/{{ $key }}
95+
subPath: {{ $key }}
96+
readOnly: true
9597
{{- end -}}
9698
{{- end -}}
9799

0 commit comments

Comments
 (0)