From 368ecec5f3bf4adfed9c3c3ce52163be611986bc Mon Sep 17 00:00:00 2001 From: Florent Chevalier Date: Wed, 11 Jan 2023 14:36:53 +1100 Subject: [PATCH] feat(helm-chart): Add support for extraSecretMounts subPath in helm-chart (#5960) --- ci/helm-chart/templates/deployment.yaml | 1 + ci/helm-chart/values.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/ci/helm-chart/templates/deployment.yaml b/ci/helm-chart/templates/deployment.yaml index 57dbd3ac2524..d391398045d9 100644 --- a/ci/helm-chart/templates/deployment.yaml +++ b/ci/helm-chart/templates/deployment.yaml @@ -102,6 +102,7 @@ spec: {{- range .Values.extraSecretMounts }} - name: {{ .name }} mountPath: {{ .mountPath }} + subPath: {{ .subPath | default "" }} readOnly: {{ .readOnly }} {{- end }} {{- range .Values.extraVolumeMounts }} diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index 9c3d4446be1e..90176e7ecdb7 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -179,6 +179,7 @@ extraInitContainers: | extraSecretMounts: [] # - name: secret-files # mountPath: /etc/secrets + # subPath: private.key # (optional) # secretName: code-server-secret-files # readOnly: true