From a301adae99c08e7af40793b528600e8806584e7b Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Mon, 23 Jan 2023 12:38:42 -0500 Subject: [PATCH] Update _helpers.tpl --- chart/templates/_helpers.tpl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index bf47fd3..fcd2e18 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -58,3 +58,21 @@ Rolling pod annotations rollme: {{ .Release.Revision | quote }} checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-conf-toml.yaml" ) . | sha256sum | quote }} {{- end }} + +{{/* +Create the default conf file path and filename +*/}} +{{- define "fediblockhole.conf_file_path" -}} +{{- if .Values.fediblockhole.conf_file.path }} +{{- default .Values.fediblockhole.conf_file.path }} +{{- else }} +{{- default "default" "/etc/default/" }} +{{- end }} +{{- end }} +{{- define "fediblockhole.conf_file_filename" -}} +{{- if .Values.fediblockhole.conf_file.filename }} +{{- default .Values.fediblockhole.conf_file.filename }} +{{- else }} +{{- default "default" "fediblockhole.conf.toml" }} +{{- end }} +{{- end }}