Skip to content

Commit a5656ab

Browse files
committed
Set user server_lifetime only if specified
1 parent 0db78df commit a5656ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

charts/pgcat/templates/secret.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ stringData:
6262
pool_size = {{ $user.pool_size }}
6363
statement_timeout = {{ $user.statement_timeout }}
6464
min_pool_size = {{ or $user.min_pool_size 3}}
65-
server_lifetime = 60000
65+
{{- if $user.server_lifetime}}
66+
server_lifetime = {{ $user.server_lifetime }}
67+
{{- end }}
6668
{{- if and $user.server_username $user.server_password }}
6769
server_username = {{ $user.server_username | quote }}
6870
server_password = {{ $user.server_password | quote }}

0 commit comments

Comments
 (0)