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/cnpg-cluster.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

29 lines
945 B
YAML

{{- if eq .Values.postgresql.mode "operator" }}
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ include "groombook.fullname" . }}-postgres
labels:
{{- include "groombook.labels" . | nindent 4 }}
spec:
instances: {{ .Values.postgresql.operator.instances }}
storage:
size: {{ .Values.postgresql.operator.storage.size }}
{{- if .Values.postgresql.operator.storage.storageClass }}
storageClass: {{ .Values.postgresql.operator.storage.storageClass }}
{{- end }}
bootstrap:
initdb:
database: {{ .Values.postgresql.operator.bootstrap.database }}
owner: {{ .Values.postgresql.operator.bootstrap.owner }}
{{- if .Values.postgresql.operator.credentialsSecret }}
secret:
name: {{ .Values.postgresql.operator.credentialsSecret }}
{{- end }}
{{- if .Values.postgresql.operator.monitoring.enabled }}
monitoring:
enablePodMonitor: true
{{- end }}
{{- end }}