Simplifying secret management

This commit is contained in:
Jansen Fuller
2026-05-01 11:22:55 -06:00
committed by Dustin J. Mitchell
parent c58bb4800d
commit 84c06475c6
4 changed files with 14 additions and 20 deletions

View File

@ -1,11 +1,11 @@
{{- if and .Values.postgres.enabled (eq .Values.postgres.existingSecret "") -}}
{{- if .Values.postgres.enabled }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "taskchampion-sync-server.fullname" . }}
name: {{ include "taskchampion-sync-server.postgres-secret-name" . }}
labels:
{{- include "taskchampion-sync-server.labels" . | nindent 4 }}
type: Opaque
data:
connection: {{ include "taskchampion-sync-server.postgres-connection" . | b64enc }}
{{- end -}}
{{- end }}