From 5fb81fa227f667f958ffa78d982f31e0a50087bc Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:30:14 -0500 Subject: [PATCH] Update _helpers.tpl --- chart/templates/_helpers.tpl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index 78e6610..6501d6a 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -68,3 +68,23 @@ Create the default conf file path and filename {{- define "fediblockhole.conf_file_filename" -}} {{- default "fediblockhole.conf.toml" .Values.fediblockhole.conf_file.filename }} {{- end }} + +{{/* +Create the default allowlist file path and filename +*/}} +{{- define "fediblockhole.allow_file_path" -}} +{{- default "/etc/default/" .Values.fediblockhole.allow_file.path }} +{{- end }} +{{- define "fediblockhole.allow_file_filename" -}} +{{- default "allowlist.csv" .Values.fediblockhole.allow_file.filename }} +{{- end }} + +{{/* +Create the default blocklist file path and filename +*/}} +{{- define "fediblockhole.block_file_path" -}} +{{- default "/etc/default/" .Values.fediblockhole.block_file.path }} +{{- end }} +{{- define "fediblockhole.block_file_filename" -}} +{{- default "blocklist.csv" .Values.fediblockhole.block_file.filename }} +{{- end }}