helm-charts/charts/cnpg-cluster/templates/pooler.cnpg.yaml
devthejo 103cc957ca
Some checks failed
Mirror Sync / codeberg (push) Successful in 8s
🎉 Release Commit / create release using commit-and-tag-version (push) Has been cancelled
feat: cnpg-cluster
2024-07-19 00:47:26 +02:00

16 lines
498 B
YAML

{{- range $name, $spec := .Values.poolers }}
---
apiVersion: postgresql.cnpg.io/v1
kind: Pooler
metadata:
name: {{ include "cnpg-cluster.fullname" $ }}-{{ $name }}
labels:
{{- include "cnpg-cluster.labels" $ | nindent 4 }}
cnpg.io/poolerName: {{ include "cnpg-cluster.fullname" $ }}-{{ $name }}
spec:
cluster:
name: {{ include "cnpg-cluster.fullname" $ }}
{{- toYaml $spec | nindent 2 }}
monitoring:
enablePodMonitor: {{ $.Values.monitoring.enablePodMonitor }}
{{- end }}