From 75a5a6a55b3b333cc7164eae18e25f1f043e1170 Mon Sep 17 00:00:00 2001 From: cunningpike <117583036+cunningpike@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:55:08 -0500 Subject: [PATCH] Update _helpers.tpl --- chart/templates/_helpers.tpl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index d42cc60..78e6610 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -63,16 +63,8 @@ checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-co Create the default conf file path and filename */}} {{- define "fediblockhole.conf_file_path" -}} -{{- if .Values.fediblockhole.conf_file.path }} -{{- .Values.fediblockhole.conf_file.path }} -{{- else }} -{{- "/etc/default/" }} -{{- end }} +{{- default "/etc/default/" .Values.fediblockhole.conf_file.path }} {{- end }} {{- define "fediblockhole.conf_file_filename" -}} -{{- if .Values.fediblockhole.conf_file.filename }} -{{- .Values.fediblockhole.conf_file.filename }} -{{- else }} -{{- "fediblockhole.conf.toml" }} -{{- end }} +{{- default "fediblockhole.conf.toml" .Values.fediblockhole.conf_file.filename }} {{- end }}