From 1767918a8cdecf232bc6b65d734d3398c4bf03a1 Mon Sep 17 00:00:00 2001 From: rjshrjndrn Date: Tue, 3 Sep 2024 17:04:05 +0200 Subject: [PATCH] fix(helm): pg version check Signed-off-by: rjshrjndrn --- scripts/helmcharts/openreplay/templates/job.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helmcharts/openreplay/templates/job.yaml b/scripts/helmcharts/openreplay/templates/job.yaml index c05e480d5..d4f40b73d 100644 --- a/scripts/helmcharts/openreplay/templates/job.yaml +++ b/scripts/helmcharts/openreplay/templates/job.yaml @@ -158,7 +158,7 @@ spec: args: - | set -x - pg_version=$(psql -c "SHOW server_version;" | grep -oP '\d\d+') + pg_version=$(psql -c "SHOW server_version;" | xargs | grep -oP '\d+(?=\.)') if [[ $pg_version -le 14 ]]; then echo "[error] postgresql version is $pg_version which is <= 15. Exiting." exit 101