From ddcee8a30388a3fd1f90f0913a2b9f30971c1205 Mon Sep 17 00:00:00 2001 From: Mostafa Date: Fri, 30 Aug 2024 05:57:17 -0500 Subject: [PATCH 1/4] Cut 1.2.0 release --- Cargo.lock | 2 +- Cargo.toml | 2 +- charts/pgcat/Chart.yaml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e0dff6e1..e2f89853 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1034,7 +1034,7 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pgcat" -version = "1.1.2-dev4" +version = "1.2.0" dependencies = [ "arc-swap", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index 390d9d5d..f75e9185 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgcat" -version = "1.1.2-dev4" +version = "1.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/charts/pgcat/Chart.yaml b/charts/pgcat/Chart.yaml index c77d29c0..178b359c 100644 --- a/charts/pgcat/Chart.yaml +++ b/charts/pgcat/Chart.yaml @@ -4,5 +4,5 @@ description: A Helm chart for PgCat a PostgreSQL pooler and proxy (like PgBounce maintainers: - name: Wildcard email: support@w6d.io -appVersion: "1.1.1" -version: 0.1.0 +appVersion: "1.2.0" +version: 0.2.0 \ No newline at end of file From 250281cf80a5cfce8183228c6a903c0f48520c16 Mon Sep 17 00:00:00 2001 From: Mostafa Date: Fri, 30 Aug 2024 05:59:36 -0500 Subject: [PATCH 2/4] make linter happy --- 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 178b359c..e05b239f 100644 --- a/charts/pgcat/Chart.yaml +++ b/charts/pgcat/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - name: Wildcard email: support@w6d.io appVersion: "1.2.0" -version: 0.2.0 \ No newline at end of file +version: 0.2.0 From 056f7e29083b1373a60e72ba1d63f3b5981f8357 Mon Sep 17 00:00:00 2001 From: Mostafa Date: Fri, 30 Aug 2024 06:35:36 -0500 Subject: [PATCH 3/4] fix lint issues --- charts/pgcat/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/pgcat/values.yaml b/charts/pgcat/values.yaml index 86be4104..d3e905b5 100644 --- a/charts/pgcat/values.yaml +++ b/charts/pgcat/values.yaml @@ -170,13 +170,13 @@ configuration: connect_timeout: 5000 # How long an idle connection with a server is left open (ms). - idle_timeout: 30000 # milliseconds + idle_timeout: 30000 # milliseconds # Max connection lifetime before it's closed, even if actively used. - server_lifetime: 86400000 # 24 hours + server_lifetime: 86400000 # 24 hours # How long a client is allowed to be idle while in a transaction (ms). - idle_client_in_transaction_timeout: 0 # milliseconds + idle_client_in_transaction_timeout: 0 # milliseconds # @param configuration.general.healthcheck_timeout How much time to give `SELECT 1` health check query to return with a result (ms). healthcheck_timeout: 1000 From c5257634c362cbdda2d1ac1e86047afce9bc37c6 Mon Sep 17 00:00:00 2001 From: Mostafa Abdelraouf Date: Fri, 30 Aug 2024 08:04:51 -0500 Subject: [PATCH 4/4] more lint changes --- charts/pgcat/values.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/pgcat/values.yaml b/charts/pgcat/values.yaml index d3e905b5..e87c576b 100644 --- a/charts/pgcat/values.yaml +++ b/charts/pgcat/values.yaml @@ -240,7 +240,15 @@ configuration: ## the pool_name is what clients use as database name when connecting ## For the example below a client can connect using "postgres://sharding_user:sharding_user@pgcat_host:pgcat_port/sharded" ## @param [object] - pools: [] + pools: + [{ + name: "simple", pool_mode: "transaction", + users: [{username: "user", password: "pass", pool_size: 5, statement_timeout: 0}], + shards: [{ + servers: [{host: "postgres", port: 5432, role: "primary"}], + database: "postgres" + }] + }] # - ## default values # ## # ##