mirror of
https://github.com/mastodon/chart
synced 2025-05-18 04:53:21 +00:00
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
17 lines
412 B
YAML
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 }}
|