Skip to content

Commit d45e9c9

Browse files
committed
chart: bump version to 0.3.1 and update pooler connection validation logic
1 parent 4ed235c commit d45e9c9

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

charts/cnpg-cluster/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.0
18+
version: 0.3.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/cnpg-cluster/templates/cnpg-pooler-ro.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if and .Values.pooler.ro.enabled (gt (.Values.pooler.ro.instances | int) 0) (gt (.Values.connections.pooler | int) 0) }}
1+
{{- $poolerConn := include "cnpg-cluster.poolerConnections" . | int }}
2+
{{- if and .Values.pooler.ro.enabled (gt (.Values.pooler.ro.instances | int) 0) (gt $poolerConn 0) }}
23
apiVersion: postgresql.cnpg.io/v1
34
kind: Pooler
45
metadata:

charts/cnpg-cluster/templates/cnpg-pooler-rw.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
{{- if and .Values.pooler.rw.enabled (gt (.Values.pooler.rw.instances | int) 0) (gt (.Values.connections.pooler | int) 0) }}
1+
{{- $poolerConn := include "cnpg-cluster.poolerConnections" . | int }}
2+
{{- if and .Values.pooler.rw.enabled (gt (.Values.pooler.rw.instances | int) 0) (gt $poolerConn 0) }}
23
apiVersion: postgresql.cnpg.io/v1
34
kind: Pooler
45
metadata:

0 commit comments

Comments
 (0)