mirror of
https://github.com/bitnami/charts.git
synced 2026-03-06 15:10:15 +08:00
[bitnami/postgresql-ha] Fixes pgpool PGPOOL_CHILD_LIFE_TIME not rendered when is 0 (#5027)
* Fixes pgpool PGPOOL_CHILD_LIFE_TIME not rendered when is 0 * Handle the case when the parameter is empty Co-authored-by: rafael <rafael@bitnami.com>
This commit is contained in:
committed by
GitHub
parent
b8166c16cc
commit
6de1843ea3
@@ -27,4 +27,4 @@ name: postgresql-ha
|
||||
sources:
|
||||
- https://github.com/bitnami/bitnami-docker-postgresql
|
||||
- https://www.postgresql.org/
|
||||
version: 6.3.5
|
||||
version: 6.3.6
|
||||
|
||||
@@ -219,9 +219,10 @@ spec:
|
||||
- name: PGPOOL_CHILD_MAX_CONNECTIONS
|
||||
value: {{ .Values.pgpool.childMaxConnections | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.pgpool.childLifeTime }}
|
||||
{{- $childlifetime := .Values.pgpool.childLifeTime | quote }}
|
||||
{{- if or $childlifetime (eq "0" $childlifetime) }}
|
||||
- name: PGPOOL_CHILD_LIFE_TIME
|
||||
value: {{ .Values.pgpool.childLifeTime | quote }}
|
||||
value: {{ $childlifetime }}
|
||||
{{- end }}
|
||||
{{- if .Values.pgpool.clientIdleLimit }}
|
||||
- name: PGPOOL_CLIENT_IDLE_LIMIT
|
||||
|
||||
Reference in New Issue
Block a user