This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/charts/groombook/templates/db-credentials-secret.yaml
T
groombook-engineer[bot] dcdc792875 Add Helm chart scaffold with Chart.yaml, values.yaml, helpers, and all templates
Adds full Helm chart for GroomBook including migration job (pre-install/pre-upgrade hook), CNPG cluster (operator mode), DragonflyDB (integrated + operator modes), API/web deployments, services, and ingress templates.

Resolves GRO-89.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-27 18:36:28 +00:00

14 lines
592 B
YAML

{{- if eq .Values.postgresql.mode "integrated" }}
{{- $password := default (randAlphaNum 16) .Values.postgresql.integrated.auth.password }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "groombook.fullname" . }}-db-credentials
labels:
{{- include "groombook.labels" . | nindent 4 }}
type: Opaque
stringData:
postgresql-password: {{ $password | quote }}
database-url: {{ printf "postgres://%s:%s@%s-postgresql:5432/%s" .Values.postgresql.integrated.auth.username $password (include "groombook.fullname" .) .Values.postgresql.integrated.auth.database | quote }}
{{- end }}