Validation for postges

This commit is contained in:
Jansen Fuller
2026-05-01 10:15:27 -06:00
committed by Dustin J. Mitchell
parent 9bddb2f261
commit eee66c5475
2 changed files with 66 additions and 11 deletions

View File

@ -52,17 +52,7 @@ spec:
{{- end }}
{{- if eq .Values.postgres.enabled true }}
- name: CONNECTION
valueFrom:
secretKeyRef:
name: {{ required "postgres.existingSecret is required when postgres is enabled" .Values.postgres.existingSecret }}
key: connection
optional: true
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.postgres.existingSecret }}
key: password
optional: true
value: {{ include "taskchampion-sync-server.postgres-connection" . | quote }}
{{- end }}
ports:
- name: http