From df052f2c0c30eeb8ca1868cd86eb547d4b6ecd2c Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Tue, 21 Feb 2023 15:00:37 -0500 Subject: [PATCH] Update cronjob-fediblock-sync.yaml --- chart/templates/cronjob-fediblock-sync.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/chart/templates/cronjob-fediblock-sync.yaml b/chart/templates/cronjob-fediblock-sync.yaml index 8e18aee..c9c6774 100644 --- a/chart/templates/cronjob-fediblock-sync.yaml +++ b/chart/templates/cronjob-fediblock-sync.yaml @@ -31,8 +31,10 @@ spec: mountPath: {{ include "fediblockhole.conf_file_path" . | quote }} - name: allow mountPath: {{ include "fediblockhole.allow_file_path" . | quote }} + {{- with fediblockhole.block_file_path }} - name: block - mountPath: {{ include "fediblockhole.block_file_path" . | quote }} + mountPath: {{ . | quote }} + {{ end }} volumes: - name: config configMap: @@ -46,10 +48,14 @@ spec: items: - key: {{ include "fediblockhole.allow_file_filename" . | quote }} path: {{ include "fediblockhole.allow_file_filename" . | quote }} - - name: config + {{- with fediblockhole.block_file_path }} + - name: block configMap: name: {{ include "fediblockhole.fullname" . }}-block-csv + {{- with fediblockhole.block_file_filename }} items: - - key: {{ include "fediblockhole.block_file_filename" . | quote }} - path: {{ include "fediblockhole.block_file_filename" . | quote }} + - key: {{ . | quote }} + path: {{ . | quote }} + {{ end }} + {{end }} {{- end }}