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.