From 4492a0920adaf9ee6058d17a37e8d24db6b307cb Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Sat, 21 Jan 2023 19:44:38 -0500 Subject: [PATCH] Update cronjob-fediblock-sync.yaml --- chart/templates/cronjob-fediblock-sync.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/chart/templates/cronjob-fediblock-sync.yaml b/chart/templates/cronjob-fediblock-sync.yaml index e3f87d1..0d00df3 100644 --- a/chart/templates/cronjob-fediblock-sync.yaml +++ b/chart/templates/cronjob-fediblock-sync.yaml @@ -25,7 +25,7 @@ spec: command: - fediblock - -c - - {{ .Values.fediblockhole.conf_file }} + - {{ .Values.fediblockhole.conf_file.path }}{{ .Values.fediblockhole.conf_file.filename }} envFrom: - configMapRef: name: {{ include "fediblockhole.fullname" . }}-env @@ -33,6 +33,13 @@ spec: name: {{ template "fediblockhole.secretName" . }} volumeMounts: - name: config - mountPath: "path/in/the/pod/where/to/mount/the/file" - subPath: file.conf + mountPath: "{{ .Values.fediblockhole.conf_file.path }}" + subPath: {{ .Values.fediblockhole.conf_file.filename }} + volumes: + - name: config + configMap: + name: {{ include "fediblockhole.fullname" . }}-env + items: + - key: "{{ .Values.fediblockhole.conf_file.filename }}" + path: "{{ .Values.fediblockhole.conf_file.filename }}" {{- end }}