Files
charts/bitnami/mastodon/templates/smtp-secret.yaml
JesseBot 6175b41a9f [bitnami/mastodon] Move defaultConfig and defaultSecretConfig to default-configmap.yaml and default-secret.yaml respectively and add mastodon secret env vars (#19179)
* Move defaultConfig and defaultSecretConfig to default-configmap.yaml and default-secret.yaml respectively

Signed-off-by: jessebot <jessebot@linux.com>

* mastodon: allow smtp.server to come from an existingSecret

Signed-off-by: jessebot <jessebot@linux.com>

* update README for mastodon after values.yaml changes to config defaults

Signed-off-by: jessebot <jessebot@linux.com>

* mastodon: web: move SMTP_SERVER out of 'if ne .Values.smtp.auth_method none' conditional

Signed-off-by: jessebot <jessebot@linux.com>

* move SMTP_SERVER to default-secrets instead of configmap

Signed-off-by: jessebot <jessebot@linux.com>

* adding secretKeyBase and otpSecret to values.yaml as parameters to be passed into mastodon default secret

Signed-off-by: jessebot <jessebot@linux.com>

* add vapidPublicKey and vapidPrivateKey as parameters for mastodon chart

Signed-off-by: jessebot <jessebot@linux.com>

* mastodon: remove SMTP_SERVER from deployment env vars, because we already pass it in with the default-secret

Signed-off-by: jessebot <jessebot@linux.com>

* Update bitnami/mastodon/templates/_helpers.tpl - remove this block as it's no longer in use

Signed-off-by: JesseBot <jessebot@linux.com>

* Update bitnami/mastodon/values.yaml - correct mastoon typo

Signed-off-by: JesseBot <jessebot@linux.com>

* Update bitnami/mastodon/values.yaml - fix mastdon typo

Signed-off-by: JesseBot <jessebot@linux.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* add SMTP_SERVER env var to web/deployment and _helpers.tpl as a viable existing secret parameter

Signed-off-by: jessebot <jessebot@linux.com>

* Update bitnami/mastodon/Chart.yaml - change chart version to 3.1.0

Signed-off-by: JesseBot <jessebot@linux.com>

* Apply suggestions from code review - fix Mastodon spelling typos

Signed-off-by: JesseBot <jessebot@linux.com>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* mastodon: add the smtp server to the default smtp secret

Signed-off-by: jessebot <jessebot@linux.com>

---------

Signed-off-by: jessebot <jessebot@linux.com>
Signed-off-by: JesseBot <jessebot@linux.com>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
2023-11-02 14:03:05 +01:00

22 lines
820 B
YAML

{{- /*
Copyright VMware, Inc.
SPDX-License-Identifier: APACHE-2.0
*/}}
{{- if not .Values.smtp.existingSecret }}
apiVersion: v1
kind: Secret
metadata:
name: {{ printf "%s-smtp" (include "common.names.fullname" .) | trunc 63 | trimSuffix "-" }}
namespace: {{ include "common.names.namespace" . | quote }}
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
app.kubernetes.io/part-of: mastodon
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
data:
login: {{ .Values.smtp.login | b64enc | quote }}
password: {{ .Values.smtp.password | b64enc | quote }}
server: {{ .Values.smtp.server | b64enc | quote }}
{{- end }}