[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:
Rafael Ríos Saavedra
2021-01-15 16:10:34 +01:00
committed by GitHub
parent b8166c16cc
commit 6de1843ea3
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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