From 4b1f48e00b78e7307eb197aa66ee75bcaf2a082b Mon Sep 17 00:00:00 2001 From: Anna Khanova <32508607+khanova@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:10:16 +0400 Subject: [PATCH 1/3] Create http-timeout value --- charts/neon-proxy/Chart.yaml | 2 +- charts/neon-proxy/README.md | 3 ++- charts/neon-proxy/templates/deployment.yaml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/neon-proxy/Chart.yaml b/charts/neon-proxy/Chart.yaml index 1b96fd0..b3e7355 100644 --- a/charts/neon-proxy/Chart.yaml +++ b/charts/neon-proxy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: neon-proxy description: Neon Proxy type: application -version: 1.7.18 +version: 1.7.19 appVersion: "0.1.0" kubeVersion: "^1.18.x-x" home: https://neon.tech diff --git a/charts/neon-proxy/README.md b/charts/neon-proxy/README.md index 7d151a8..6f800cd 100644 --- a/charts/neon-proxy/README.md +++ b/charts/neon-proxy/README.md @@ -1,6 +1,6 @@ # neon-proxy -![Version: 1.7.18](https://img.shields.io/badge/Version-1.7.18-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) +![Version: 1.7.19](https://img.shields.io/badge/Version-1.7.19-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml) Neon Proxy @@ -89,6 +89,7 @@ Kubernetes: `^1.18.x-x` | settings.rustLog | string | `"INFO"` | Proxy log level | | settings.sentryEnvironment | string | `"development"` | "development" or "production". It will be visible in sentry in order to filter issues | | settings.sentryUrl | string | `""` | url (will be converted into `SENTRY_DSN` environment variable) used by sentry to collect error/panic events in neon-proxy | +| settings.sqlOverHttpTimeout | string | `"15s"` | timeout for http connection requests | | settings.uri | string | `""` | | | settings.useCertManager | bool | `true` | | | settings.wakeComputeLock | string | `"permits=0"` | (string) Configures the locking of wake_compute per endpoint | diff --git a/charts/neon-proxy/templates/deployment.yaml b/charts/neon-proxy/templates/deployment.yaml index 0de0193..1a43a80 100644 --- a/charts/neon-proxy/templates/deployment.yaml +++ b/charts/neon-proxy/templates/deployment.yaml @@ -81,6 +81,9 @@ spec: - {{ . }} {{- end }} {{- end }} + {{- with .Values.settings.sqlOverHttpTimeout }} + - --sql-over-http-timeout={{ . }} + {{ end }} {{- if .Values.settings.httpPoolOptIn }} - --sql-over-http-pool-opt-in - "true" From 2f0701d49d938fe7d03aa953d9b68a2098173798 Mon Sep 17 00:00:00 2001 From: Anna Khanova <32508607+khanova@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:13:50 +0400 Subject: [PATCH 2/3] Add values --- charts/neon-proxy/values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/neon-proxy/values.yaml b/charts/neon-proxy/values.yaml index 1a94637..e069e8f 100644 --- a/charts/neon-proxy/values.yaml +++ b/charts/neon-proxy/values.yaml @@ -63,6 +63,8 @@ settings: wakeComputeLock: "permits=0" # settings.redisNotifications -- (url) Configures redis client redisNotifications: "" + # settings.sqlOverHttpTimeout -- (string) timeout for http connection requests + sqlOverHttpTimeout: "15s" # settings.httpPoolOptIn -- (bool) Sets the SQL over HTTP Pool to opt-in-only mode if true. Set false to enable it always httpPoolOptIn: true # settings.disableDynamicRateLimiter -- (bool) Disable dynamic rate limiter From bc43858ed1fb536cc487badfde545eb2266380a1 Mon Sep 17 00:00:00 2001 From: Anna Khanova <32508607+khanova@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:18:12 +0400 Subject: [PATCH 3/3] Fix docs --- charts/neon-proxy/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/neon-proxy/README.md b/charts/neon-proxy/README.md index 6f800cd..483f3e5 100644 --- a/charts/neon-proxy/README.md +++ b/charts/neon-proxy/README.md @@ -89,7 +89,7 @@ Kubernetes: `^1.18.x-x` | settings.rustLog | string | `"INFO"` | Proxy log level | | settings.sentryEnvironment | string | `"development"` | "development" or "production". It will be visible in sentry in order to filter issues | | settings.sentryUrl | string | `""` | url (will be converted into `SENTRY_DSN` environment variable) used by sentry to collect error/panic events in neon-proxy | -| settings.sqlOverHttpTimeout | string | `"15s"` | timeout for http connection requests | +| settings.sqlOverHttpTimeout | string | `"15s"` | (string) timeout for http connection requests | | settings.uri | string | `""` | | | settings.useCertManager | bool | `true` | | | settings.wakeComputeLock | string | `"permits=0"` | (string) Configures the locking of wake_compute per endpoint |