dcdc792875
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>
14 lines
592 B
YAML
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 }}
|