Refactor
This commit is contained in:
parent
0079a1dcb9
commit
fd14c6d228
19 changed files with 158 additions and 128 deletions
|
@ -6,12 +6,12 @@ metadata:
|
|||
{{- include "django.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
data:
|
||||
DATABASE_URL: {{ required "databaseURL is a required value." .Values.databaseURL | b64enc | quote }}
|
||||
SECRET_KEY: {{ required "secretKey is a required value." .Values.secretKey | b64enc | quote }}
|
||||
REDIS_URL: {{ printf "redis://:@glitchtip-staging-redis-master:6379/0" | b64enc | quote }}
|
||||
{{- if .Values.stripeLiveSecretKey }}
|
||||
STRIPE_LIVE_SECRET_KEY: {{ .Values.stripeLiveSecretKey | b64enc | quote }}
|
||||
{{- range $k, $v := .Values.env.secret }}
|
||||
{{ $k }}: {{ $v | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.djstripeWebhookSecret }}
|
||||
DJSTRIPE_WEBHOOK_SECRET: {{ .Values.djstripeWebhookSecret | b64enc | quote }}
|
||||
{{- if .Values.redis.enabled }}
|
||||
REDIS_URL: {{ include "django.redis.url" . | b64enc | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.postgresql.enabled }}
|
||||
DATABASE_URL: {{ include "django.postgresql.url" . | b64enc | quote }}
|
||||
{{- end }}
|
Reference in a new issue