All checks were successful
release-charts-postgres-cluster / release (push) Successful in 18s
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
{{- range .Values.poolers }}
|
|
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Pooler
|
|
metadata:
|
|
name: {{ include "cluster.name" $ }}-pooler-{{ .name }}
|
|
namespace: {{ include "cluster.namespace" $ }}
|
|
labels:
|
|
{{- include "cluster.labels" . | nindent 4 }}
|
|
{{- with .Values.cluster.additionalLabels }}
|
|
{{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
cluster:
|
|
name: {{ include "cluster.name" $ }}
|
|
instances: {{ .instances }}
|
|
type: {{ default "rw" .type }}
|
|
pgbouncer:
|
|
poolMode: {{ default "session" .poolMode }}
|
|
{{- with .authQuerySecret }}
|
|
authQuerySecret:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .authQuery }}
|
|
authQuery:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .parameters }}
|
|
parameters:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{- with .pg_hba }}
|
|
pg_hba:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{- end }}
|
|
{{ with .monitoring }}
|
|
monitoring:
|
|
{{- if not (empty .podMonitor) }}
|
|
enablePodMonitor: {{ and .enabled .podMonitor.enabled }}
|
|
{{- with .podMonitor.relabelings }}
|
|
podMonitorRelabelings:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{ end }}
|
|
{{- with .podMonitor.metricRelabelings }}
|
|
podMonitorMetricRelabelings:
|
|
{{- toYaml . | nindent 6 }}
|
|
{{ end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- with .template }}
|
|
template:
|
|
{{- . | toYaml | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|