Update _helpers.tpl

This commit is contained in:
cunningpike 2023-01-23 12:38:42 -05:00 committed by GitHub
parent a0d307081a
commit a301adae99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -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 }}