feat: Ability to specify existing secret as database url (#751)

Closes #750
This commit is contained in:
Mitch Harvey
2024-05-13 11:07:57 +02:00
committed by GitHub
parent 20e642adc0
commit 60bf590177
2 changed files with 16 additions and 2 deletions
+9 -1
View File
@@ -64,8 +64,16 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
env:
{{- if not .Values.postgresql.enabled }}
{{- if .Values.existingDburlSecret }}
- name: DATABASE_URL
value: {{ required "If the included postgresql deployment is disabled you need to define a Database URL in 'dburl'" .Values.dburl }}
valueFrom:
secretKeyRef:
name: .Values.existingDburlSecret
key: uri
{{- else }}
- name: DATABASE_URL
value: {{ required "If the included postgresql deployment is disabled you need to provide an existing secret in .Values.existingDburlSecret or define a Database URL in 'dburl'" .Values.dburl }}
{{- end }}
{{- else }}
- name: DATABASE_URL
valueFrom: