Update _helpers.tpl

This commit is contained in:
cunningpike 2023-01-23 11:26:14 -05:00 committed by GitHub
parent df4d4232c0
commit c6a4bbd170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 21 deletions

View File

@ -56,26 +56,5 @@ Rolling pod annotations
*/}} */}}
{{- define "fediblockhole.rollingPodAnnotations" -}} {{- define "fediblockhole.rollingPodAnnotations" -}}
rollme: {{ .Release.Revision | quote }} rollme: {{ .Release.Revision | quote }}
checksum/config-secrets: {{ include ( print $.Template.BasePath "/secrets.yaml" ) . | sha256sum | quote }}
checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-conf-toml.yaml" ) . | sha256sum | quote }} checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-conf-toml.yaml" ) . | sha256sum | quote }}
{{- end }} {{- end }}
{{/*
Get the fediblockhole secret.
*/}}
{{- define "fediblockhole.secretName" -}}
{{- if .Values.fediblockhole.secrets.existingSecret }}
{{- printf "%s" (tpl .Values.fediblockhole.secrets.existingSecret $) -}}
{{- else -}}
{{- printf "%s" (include "common.names.fullname" .) -}}
{{- end -}}
{{- end -}}
{{/*
Return true if a fediblockhole secret object should be created
*/}}
{{- define "fediblockhole.createSecret" -}}
{{- if (not .Values.fediblockhole.secrets.existingSecret) -}}
{{- true -}}
{{- end -}}
{{- end -}}