Skip to content

Commit

Permalink
x4
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar committed Dec 12, 2023
1 parent 1ecf179 commit 0b50c6f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ if [ "$EXTERNAL_SECRET" ]; then

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

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"
Expand Down

0 comments on commit 0b50c6f

Please sign in to comment.