From 1d3d7410b09df3853a45da2f4f13e72c6d539369 Mon Sep 17 00:00:00 2001 From: Eric_Ren Date: Wed, 4 Dec 2024 16:07:46 +0800 Subject: [PATCH 1/2] Update secret.yaml fix boolean value in `default` operator result always default value. --- charts/pgcat/templates/secret.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/pgcat/templates/secret.yaml b/charts/pgcat/templates/secret.yaml index 358f4e97..8db46900 100644 --- a/charts/pgcat/templates/secret.yaml +++ b/charts/pgcat/templates/secret.yaml @@ -48,9 +48,9 @@ stringData: load_balancing_mode = {{ default "random" $pool.load_balancing_mode | quote }} default_role = {{ default "any" $pool.default_role | quote }} prepared_statements_cache_size = {{ default 500 $pool.prepared_statements_cache_size }} - query_parser_enabled = {{ default true $pool.query_parser_enabled }} - query_parser_read_write_splitting = {{ default true $pool.query_parser_read_write_splitting }} - primary_reads_enabled = {{ default true $pool.primary_reads_enabled }} + query_parser_enabled = {{ ne $pool.query_parser_enabled false }} + query_parser_read_write_splitting = {{ ne $pool.query_parser_read_write_splitting false }} + primary_reads_enabled = {{ ne $pool.primary_reads_enabled false }} sharding_function = {{ default "pg_bigint_hash" $pool.sharding_function | quote }} {{- range $index, $user := $pool.users }} From 6498a28847e392d98e6fba219f8eb7133c233bfa Mon Sep 17 00:00:00 2001 From: Eric_Ren Date: Wed, 4 Dec 2024 16:13:48 +0800 Subject: [PATCH 2/2] Update Chart.yaml to version 0.2.6 --- charts/pgcat/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/pgcat/Chart.yaml b/charts/pgcat/Chart.yaml index 430c839b..6ffced79 100644 --- a/charts/pgcat/Chart.yaml +++ b/charts/pgcat/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: PostgresML email: team@postgresml.org appVersion: "1.2.0" -version: 0.2.5 +version: 0.2.6