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 94f95ca commit a4d4f6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ if [ "$EXTERNAL_SECRET" ]; then

echo "Checking if $EXTERNAL_SECRET exists..."

if [ $(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET") -neq 0 ]; then
echo "$EXTERNAL_SECRET doesn't exist"
kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET"

if [ ! $(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" | grep SecretSynced) ]; then
echo "$EXTERNAL_SECRET has an unvalid status, please review it"
exit 1
fi

Expand Down

0 comments on commit a4d4f6c

Please sign in to comment.