You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.5 KiB

  1. apiVersion: v1
  2. kind: Secret
  3. metadata:
  4. name: {{ template "mastodon.fullname" . }}
  5. labels:
  6. {{- include "mastodon.labels" . | nindent 4 }}
  7. type: Opaque
  8. data:
  9. {{- if .Values.mastodon.s3.enabled }}
  10. AWS_ACCESS_KEY_ID: "{{ .Values.mastodon.s3.access_key | b64enc }}"
  11. AWS_SECRET_ACCESS_KEY: "{{ .Values.mastodon.s3.access_secret | b64enc }}"
  12. {{- end }}
  13. {{- if not (empty .Values.mastodon.secrets.secret_key_base) }}
  14. SECRET_KEY_BASE: "{{ .Values.mastodon.secrets.secret_key_base | b64enc }}"
  15. {{- else }}
  16. SECRET_KEY_BASE: {{ required "secret_key_base is required" .Values.mastodon.secrets.secret_key_base }}
  17. {{- end }}
  18. {{- if not (empty .Values.mastodon.secrets.otp_secret) }}
  19. OTP_SECRET: "{{ .Values.mastodon.secrets.otp_secret | b64enc }}"
  20. {{- else }}
  21. OTP_SECRET: {{ required "otp_secret is required" .Values.mastodon.secrets.otp_secret }}
  22. {{- end }}
  23. {{- if not (empty .Values.mastodon.secrets.vapid.private_key) }}
  24. VAPID_PRIVATE_KEY: "{{ .Values.mastodon.secrets.vapid.private_key | b64enc }}"
  25. {{- else }}
  26. VAPID_PRIVATE_KEY: {{ required "vapid.private_key is required" .Values.mastodon.secrets.vapid.private_key }}
  27. {{- end }}
  28. {{- if not (empty .Values.mastodon.secrets.vapid.public_key) }}
  29. VAPID_PUBLIC_KEY: "{{ .Values.mastodon.secrets.vapid.public_key | b64enc }}"
  30. {{- else }}
  31. VAPID_PUBLIC_KEY: {{ required "vapid.public_key is required" .Values.mastodon.secrets.vapid.public_key }}
  32. {{- end }}
  33. {{- if not .Values.postgresql.enabled }}
  34. postgresql-password: "{{ .Values.postgresql.postgresqlPassword | b64enc }}"
  35. {{- end }}