mirror of
https://github.com/mastodon/chart
synced 2025-05-17 20:43: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" . }}
|
||||
{{- end }}
|
||||
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"
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
|
|
@ -87,6 +87,28 @@ spec:
|
|||
name: {{ template "mastodon.secretName" . }}
|
||||
{{- end }}
|
||||
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"
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
|
|
@ -59,6 +59,28 @@ spec:
|
|||
name: {{ template "mastodon.secretName" . }}
|
||||
{{- end }}
|
||||
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"
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
|
|
@ -58,6 +58,28 @@ spec:
|
|||
name: {{ template "mastodon.secretName" . }}
|
||||
{{- end }}
|
||||
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"
|
||||
{{- if .Values.mastodon.createAdmin.existingSecret }}
|
||||
valueFrom:
|
||||
|
|
Loading…
Reference in New Issue
Block a user