From 66adeddcb73d692bead9cf178cb73336ed4ceeb2 Mon Sep 17 00:00:00 2001 From: IO ANALYTICA <83664220+ioanalytica@users.noreply.github.com> Date: Tue, 28 Jul 2026 16:27:06 +0200 Subject: [PATCH] Fix invalid JSON (trailing comma) in operator-ui OPERATOR_UI_CONFIG (#3144) The postgresql_versions array had a trailing comma after "14" in two places that build OPERATOR_UI_CONFIG as JSON. OPERATOR_UI_CONFIG is parsed by the UI with Python's json.loads() (operator_ui/main.py), which rejects trailing commas, so the config fails to load: json.decoder.JSONDecodeError: Expecting value: line 25 column 3 Remove the trailing comma in: - charts/postgres-operator-ui/templates/deployment.yaml (chart Deployment) - ui/run_local.sh (local dev default_operator_ui_config) ui/manifests/deployment.yaml and the Python DEFAULT_UI_CONFIG in operator_ui/main.py were already correct. Fixes #3062 --- charts/postgres-operator-ui/templates/deployment.yaml | 2 +- ui/run_local.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/postgres-operator-ui/templates/deployment.yaml b/charts/postgres-operator-ui/templates/deployment.yaml index d4a2a88b8..a5729fcdc 100644 --- a/charts/postgres-operator-ui/templates/deployment.yaml +++ b/charts/postgres-operator-ui/templates/deployment.yaml @@ -88,7 +88,7 @@ spec: "17", "16", "15", - "14", + "14" ] } {{- if .Values.extraEnvs }} diff --git a/ui/run_local.sh b/ui/run_local.sh index 13d8f053a..917f1dc50 100755 --- a/ui/run_local.sh +++ b/ui/run_local.sh @@ -35,7 +35,7 @@ default_operator_ui_config='{ "17", "16", "15", - "14", + "14" ], "static_network_whitelist": { "localhost": ["172.0.0.1/32"]