From 1ecf179676bf9cb3678fc98cd98a61c708d1bdaa Mon Sep 17 00:00:00 2001 From: Erick Navarro Date: Tue, 12 Dec 2023 11:49:02 -0500 Subject: [PATCH] x3 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3c06405..88aeed5 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,7 +36,7 @@ if [ "$EXTERNAL_SECRET" ]; then kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq - if [ "$(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq '.status.conditions.[0].reason' | xargs)" == "SecretSynced" ]; then + if [ `kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq '.status.conditions.[0].reason' | xargs` == "SecretSynced" ]; then echo "$EXTERNAL_SECRET OK" else echo "$EXTERNAL_SECRET has an unvalid status, please review it"