From d7d3d1d39919b8218a8ef9918f53b5bc2477f1ff Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Thu, 24 Sep 2026 08:31:28 -0700 Subject: [PATCH] feat: healthcheck_on_discovery --- Chart.yaml | 2 +- templates/config.yaml | 3 +++ test/values-full.yaml | 1 + values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 49241e5..cb8ce1d 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.79 +version: v0.80 appVersion: "v0.1.58" diff --git a/templates/config.yaml b/templates/config.yaml index 5d03591..0e6791f 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -52,6 +52,9 @@ data: {{- if hasKey .Values "healthcheckTimeout" }} healthcheck_timeout = {{ include "pgdog.intval" .Values.healthcheckTimeout }} {{- end }} + {{- if hasKey .Values "requireHealthcheckOnDiscovery" }} + require_healthcheck_on_discovery = {{ .Values.requireHealthcheckOnDiscovery }} + {{- end }} {{- if hasKey .Values "banTimeout" }} ban_timeout = {{ include "pgdog.intval" .Values.banTimeout }} {{- end }} diff --git a/test/values-full.yaml b/test/values-full.yaml index 029d5b3..4a88d39 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -9,6 +9,7 @@ defaultPoolSize: 20 minPoolSize: 2 poolerMode: transaction healthcheckInterval: 30_000 +requireHealthcheckOnDiscovery: true idleHealthcheckInterval: 30_000 idleHealthcheckDelay: 5_000 loadBalancingStrategy: round_robin diff --git a/values.yaml b/values.yaml index 54da237..312ddb5 100644 --- a/values.yaml +++ b/values.yaml @@ -69,6 +69,8 @@ port: 6432 # healthcheckPort on which PgDog will expose healthcheck endpoint # (if not specified, no separate healthcheck port is configured) # healthcheckPort: 8080 +# Optional [general] setting; omitted unless explicitly set to true or false. +# requireHealthcheckOnDiscovery: true # replicas indicates how many instances of PgDog will run (HA). replicas: 2