Files
trebuchet/charts/hightower/templates/temporal-cnpg-cluster.yaml
T
Chris Farhood 03702ff625 feat: add Helm chart and release workflow
Adds a Helm chart under charts/hightower/ as an alternative to the
Flux/Kustomize deployment. Distributed via GitHub Pages (gh-pages branch).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-23 08:20:44 -04:00

20 lines
611 B
YAML

{{- if .Values.cnpg.enabled }}
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: {{ include "hightower.cnpg.fullname" . }}
labels:
{{- include "hightower.labels" . | nindent 4 }}
spec:
instances: {{ .Values.cnpg.instances }}
storage:
size: {{ .Values.cnpg.storage.size }}
storageClass: {{ .Values.cnpg.storage.storageClass }}
bootstrap:
initdb:
database: {{ .Values.temporal.db.name }}
owner: {{ .Values.temporal.db.name }}
postInitSQL:
- CREATE DATABASE {{ .Values.temporal.db.visibilityName }} OWNER {{ .Values.temporal.db.name }};
{{- end }}