From 96e9288fac882c9490c1e062ada8425f9a8ad11b Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Thu, 5 Nov 2026 14:03:06 -0800 Subject: [PATCH] feat: control required --- Chart.yaml | 2 +- templates/config.yaml | 3 +++ test/values-control.yaml | 1 + values.yaml | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index ce74342..45fdf27 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -1,4 +1,4 @@ apiVersion: v1 name: pgdog -version: v0.94 +version: v0.95 appVersion: "v0.1.63" diff --git a/templates/config.yaml b/templates/config.yaml index 8f7af3d..a64100a 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -579,6 +579,9 @@ data: {{- with .Values.control }} {{- if .enabled }} [control] + {{- if hasKey . "required" }} + required = {{ .required }} + {{- end }} {{- if .endpoint }} endpoint = {{ .endpoint | quote }} {{- end }} diff --git a/test/values-control.yaml b/test/values-control.yaml index ee26ed9..250959c 100644 --- a/test/values-control.yaml +++ b/test/values-control.yaml @@ -1,6 +1,7 @@ # Test control plane configuration (PgDog EE) control: enabled: true + required: true endpoint: "wss://control.example.com/ws" token: "test-token-12345" metricsInterval: 2000 diff --git a/values.yaml b/values.yaml index fc7f8d9..55f1c0d 100644 --- a/values.yaml +++ b/values.yaml @@ -595,6 +595,8 @@ queryStats: control: # enabled controls whether to include [control] section in pgdog.toml enabled: false + # Require a control plane connection before allowing application traffic. + required: false # endpoint is the control plane URL. Leave empty to use PGDOG_CONTROL_ENDPOINT. endpoint: "" # token is the authentication token. Leave empty to use PGDOG_CONTROL_TOKEN.