Skip to content

Commit

Permalink
x6
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar committed Dec 12, 2023
1 parent 054f438 commit 95589e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ "$EXTERNAL_SECRET" ]; then

kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET"

if [ `kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq ".status.conditions | first | .reason" | xargs` == "SecretSynced" ]; then
if [ "$(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" -o json | jq '.status.conditions | first | .reason' | xargs)" == "SecretSynced" ]; then
echo "$EXTERNAL_SECRET OK"
else
echo "$EXTERNAL_SECRET has an unvalid status, please review it"
Expand Down

0 comments on commit 95589e0

Please sign in to comment.