mirror of
https://github.com/mastodon/chart
synced 2025-05-18 13:03:21 +00:00
adding mastodon secret blocks; todo: move to _helpers.tpl later
This commit is contained in:
parent
e0b02395b5
commit
423f380f07
|
@ -57,6 +57,28 @@ spec:
|
||||||
name: {{ template "mastodon.secretName" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.mastodon.secrets.existingSecret }}
|
||||||
|
- name: "SECRET_KEY_BASE"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.secretKeyBase }}
|
||||||
|
- name: "OTP_SECRET"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.optSecret }}
|
||||||
|
- name: "VAPID_PRIVATE_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPrivateKey }}
|
||||||
|
- name: "VAPID_PUBLIC_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPublicKey }}
|
||||||
|
{{- end }}
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
@ -87,6 +87,28 @@ spec:
|
||||||
name: {{ template "mastodon.secretName" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.mastodon.secrets.existingSecret }}
|
||||||
|
- name: "SECRET_KEY_BASE"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.secretKeyBase }}
|
||||||
|
- name: "OTP_SECRET"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.optSecret }}
|
||||||
|
- name: "VAPID_PRIVATE_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPrivateKey }}
|
||||||
|
- name: "VAPID_PUBLIC_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPublicKey }}
|
||||||
|
{{- end }}
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
@ -59,6 +59,28 @@ spec:
|
||||||
name: {{ template "mastodon.secretName" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.mastodon.secrets.existingSecret }}
|
||||||
|
- name: "SECRET_KEY_BASE"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.secretKeyBase }}
|
||||||
|
- name: "OTP_SECRET"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.optSecret }}
|
||||||
|
- name: "VAPID_PRIVATE_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPrivateKey }}
|
||||||
|
- name: "VAPID_PUBLIC_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPublicKey }}
|
||||||
|
{{- end }}
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
|
|
|
@ -58,6 +58,28 @@ spec:
|
||||||
name: {{ template "mastodon.secretName" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
|
{{- if .Values.mastodon.secrets.existingSecret }}
|
||||||
|
- name: "SECRET_KEY_BASE"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.secretKeyBase }}
|
||||||
|
- name: "OTP_SECRET"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.optSecret }}
|
||||||
|
- name: "VAPID_PRIVATE_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPrivateKey }}
|
||||||
|
- name: "VAPID_PUBLIC_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.secrets.existingSecret }}
|
||||||
|
key: {{ .Values.mastodon.secrets.secretKeys.vapidPublicKey }}
|
||||||
|
{{- end }}
|
||||||
- name: "ADMIN_USER"
|
- name: "ADMIN_USER"
|
||||||
{{- if .Values.mastodon.createAdmin.existingSecret }}
|
{{- if .Values.mastodon.createAdmin.existingSecret }}
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user