Update _helpers.tpl

This commit is contained in:
cunningpike 2023-02-21 14:30:14 -05:00 committed by GitHub
parent 3d76de04aa
commit 5fb81fa227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

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