From f3e9fbad8d4a31c5db71d72b8c59a488e8d2a55b Mon Sep 17 00:00:00 2001 From: nleconte-csgroup <86782407+nleconte-csgroup@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:20:03 +0200 Subject: [PATCH] fix: escape quote for PSQL update --- charts/rs-server-catalog-db/templates/configmap.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/rs-server-catalog-db/templates/configmap.yaml b/charts/rs-server-catalog-db/templates/configmap.yaml index d0dbd5a..cba9736 100644 --- a/charts/rs-server-catalog-db/templates/configmap.yaml +++ b/charts/rs-server-catalog-db/templates/configmap.yaml @@ -31,7 +31,7 @@ data: ON CONFLICT DO NOTHING; UPDATE pgstac.stac_extensions - SET content='$(cat /opt/pgstack_json_schema/{{ join "_" (slice ( . | splitList "/" ) 3 ) }})' + SET content=\$EscapeQuote\$$(cat /opt/pgstack_json_schema/{{ join "_" (slice ( . | splitList "/" ) 3 ) }})\$EscapeQuote\$ WHERE url={{ . | squote }} ; EOSQL