From 190787a69a77585beb818e45e8999981ce79de40 Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:51:17 -0500 Subject: [PATCH] Update _helpers.tpl --- chart/templates/_helpers.tpl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 6501d6a..3ee4c22 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -80,11 +80,13 @@ Create the default allowlist file path and filename {{- end }} {{/* -Create the default blocklist file path and filename +Create the blocklist file path and filename */}} +{{- if .Values.fediblockhole.block_file.path && .Values.fediblockhole.block_file.filename }} {{- define "fediblockhole.block_file_path" -}} -{{- default "/etc/default/" .Values.fediblockhole.block_file.path }} +{{- .Values.fediblockhole.block_file.path }} {{- end }} {{- define "fediblockhole.block_file_filename" -}} -{{- default "blocklist.csv" .Values.fediblockhole.block_file.filename }} +{{- .Values.fediblockhole.block_file.filename }} +{{- end }} {{- end }}