mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-03-21 17:41:21 +00:00
fix regression introduced by https://github.com/aenix-io/cozystack/pull/376 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced flexibility in PostgreSQL configuration with conditional handling of the `max_connections` parameter. - **Bug Fixes** - Improved parameter assignment logic for better configuration management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
32 lines
732 B
YAML
32 lines
732 B
YAML
---
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
kind: Cluster
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
instances: {{ .Values.replicas }}
|
|
enableSuperuserAccess: true
|
|
|
|
postgresql:
|
|
parameters:
|
|
max_wal_senders: "30"
|
|
{{- with .Values.postgresql.parameters.max_connections }}
|
|
max_connections: "{{ . }}"
|
|
{{- end }}
|
|
|
|
minSyncReplicas: {{ .Values.quorum.minSyncReplicas }}
|
|
maxSyncReplicas: {{ .Values.quorum.maxSyncReplicas }}
|
|
|
|
monitoring:
|
|
enablePodMonitor: true
|
|
|
|
storage:
|
|
size: {{ required ".Values.size is required" .Values.size }}
|
|
{{- with .Values.storageClass }}
|
|
storageClass: {{ . }}
|
|
{{- end }}
|
|
|
|
inheritedMetadata:
|
|
labels:
|
|
policy.cozystack.io/allow-to-apiserver: "true"
|