Update _helpers.tpl

This commit is contained in:
cunningpike 2023-01-23 13:55:08 -05:00 committed by GitHub
parent 7710c5d7dc
commit 75a5a6a55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -63,16 +63,8 @@ checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-co
Create the default conf file path and filename Create the default conf file path and filename
*/}} */}}
{{- define "fediblockhole.conf_file_path" -}} {{- define "fediblockhole.conf_file_path" -}}
{{- if .Values.fediblockhole.conf_file.path }} {{- default "/etc/default/" .Values.fediblockhole.conf_file.path }}
{{- .Values.fediblockhole.conf_file.path }}
{{- else }}
{{- "/etc/default/" }}
{{- end }}
{{- end }} {{- end }}
{{- define "fediblockhole.conf_file_filename" -}} {{- define "fediblockhole.conf_file_filename" -}}
{{- if .Values.fediblockhole.conf_file.filename }} {{- default "fediblockhole.conf.toml" .Values.fediblockhole.conf_file.filename }}
{{- .Values.fediblockhole.conf_file.filename }}
{{- else }}
{{- "fediblockhole.conf.toml" }}
{{- end }}
{{- end }} {{- end }}