From f3a2927d9aa34587c97f1ecf74c4ffa98e36e80a Mon Sep 17 00:00:00 2001 From: Alvaro Neira Ayuso Date: Fri, 13 Dec 2024 12:38:13 +0100 Subject: [PATCH] [bitnami/jaeger] Fix check-app-version for both versions Signed-off-by: Alvaro Neira Ayuso --- .vib/jaeger/goss/jaeger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vib/jaeger/goss/jaeger.yaml b/.vib/jaeger/goss/jaeger.yaml index 19fa56a6278dc..87a602337867b 100644 --- a/.vib/jaeger/goss/jaeger.yaml +++ b/.vib/jaeger/goss/jaeger.yaml @@ -8,7 +8,7 @@ command: stderr: - "Server created" check-app-version: - exec: jaeger-jaeger -v | sed "s/\-0*/./g" + exec: bash -c "if [[ \"${APP_VERSION}\" == \"1.\"* ]]; then jaeger-all-in-one version | grep -Po \"\d+\.\d+\.\d+\"; else jaeger-jaeger -v | sed \"s/\-0*/./g\"; fi" exit-status: 0 stdout: - "{{ .Env.APP_VERSION }}"