Skip to content

Commit

Permalink
x3
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar committed Dec 12, 2023
1 parent 74db6ec commit 94f95ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -l
# exit on any error
set -e

KUBERNETES_CERT="${INPUT_CERT}"
KUBERNETES_SERVER="${INPUT_SERVER}"
Expand Down Expand Up @@ -30,7 +32,7 @@ if [ "$EXTERNAL_SECRET" ]; then

echo "Checking if $EXTERNAL_SECRET exists..."

if [ $(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET" || exit 1) -neq 0 ]; then
if [ $(kubectl -n "$NAMESPACE" get es "$EXTERNAL_SECRET") -neq 0 ]; then
echo "$EXTERNAL_SECRET doesn't exist"
exit 1
fi
Expand Down

0 comments on commit 94f95ca

Please sign in to comment.