From 10b28ce9012fc56b47bfd4226aa10b767fc3f814 Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Sun, 13 Sep 2026 14:05:10 -0700 Subject: [PATCH] feat: environment config --- Chart.yaml | 2 +- templates/configmap.yaml | 4 ++++ test/values-full.yaml | 1 + values.yaml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index c3d2996..867cfee 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: pgdog-control description: PgDog Control type: application -version: 0.3.0 +version: 0.3.1 appVersion: "f477677f" diff --git a/templates/configmap.yaml b/templates/configmap.yaml index 77aba4e..5735864 100644 --- a/templates/configmap.yaml +++ b/templates/configmap.yaml @@ -18,6 +18,10 @@ metadata: {{- include "pgdog-control.labels" . | nindent 4 }} data: control.toml: | + {{- with $config.environment }} + environment = {{ . | quote }} + {{- end }} + {{- with $config.api }} {{- with .pgdog }} {{- with .ip_allowlist }} diff --git a/test/values-full.yaml b/test/values-full.yaml index e071069..1928a64 100644 --- a/test/values-full.yaml +++ b/test/values-full.yaml @@ -7,6 +7,7 @@ control: - pgdog - pgdog-staging config: + environment: production api: pgdog: ip_allowlist: diff --git a/values.yaml b/values.yaml index 10c49b1..4c4e7d2 100644 --- a/values.yaml +++ b/values.yaml @@ -92,6 +92,7 @@ control: # unset falls back to the Rust-side default. Field names match the TOML # keys (snake_case) so values are passed through verbatim. config: + # environment: production # e.g. production or staging api: {} # pgdog: # ip_allowlist: