3
0
mirror of https://github.com/mastodon/chart synced 2025-05-18 04:53:21 +00:00
mastodon-chart-mirror/templates/secret-smtp.yaml
Jeremiah Lee 4d418e97eb Change default Secret name to not rely on Bitnami
Replace common.names.fullname in the default Secret name template with mastodon.fullname

This removes all Bitnami dependencies for installs not using the Bitnami PostgreSQL, Redis, and Elasticsearch. Those charts populate the common.names.fullname template value. Installs not using these charts will receive an error. Instead, use mastodon.fullname like in secrets.yaml.

Fix mastodon/chart#60
Fix mastodon/chart#65
2023-07-20 11:41:08 +02:00

17 lines
412 B
YAML

{{- if not .Values.mastodon.smtp.existingSecret -}}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-smtp" (include "mastodon.fullname" .) }}
labels:
{{- include "mastodon.labels" . | nindent 4 }}
type: Opaque
data:
{{- with .Values.mastodon.smtp.login }}
login: {{ . | b64enc }}
{{- end }}
{{- with .Values.mastodon.smtp.password }}
password: {{ . | b64enc }}
{{- end }}
{{- end }}