From 2253880821c84f990cb1d9de3ca97da60f591fc2 Mon Sep 17 00:00:00 2001 From: PseudoResonance Date: Sat, 23 Nov 2024 00:20:40 -0800 Subject: [PATCH] Fix #25 - Config not being loaded --- charts/wg-access-server/templates/deployment.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/charts/wg-access-server/templates/deployment.yaml b/charts/wg-access-server/templates/deployment.yaml index cf84905..f3ea4f9 100644 --- a/charts/wg-access-server/templates/deployment.yaml +++ b/charts/wg-access-server/templates/deployment.yaml @@ -107,6 +107,15 @@ spec: - name: data mountPath: /data {{- end }} + {{- if or .Values.secretConfig.config .Values.secretConfig.existingSecret }} + - mountPath: /config.yaml + subPath: config.yaml + name: merged-config + {{- else }} + - mountPath: /config.yaml + subPath: config.yaml + name: configmap-config + {{- end }} {{- with .Values.extraVolumeMounts }} {{- tpl ( . | toYaml ) $ | nindent 12 }} {{- end}}