Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
paolomainardi authored Nov 25, 2024
1 parent 43526c0 commit c0ac49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/src/functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ prepare-namespace() {
echo "KUBE_NAMESPACE is missing."
exit 1
fi
echo "Namespace \"$KUBE_NAMESPACE\" already exists."
echo "Current KUBE_NAMESPACE=${KUBE_NAMESPACE}"
if ! kubectl get ns "$KUBE_NAMESPACE" >/dev/null 2>&1; then
if ! kubectl create ns "$KUBE_NAMESPACE"; then
echo "Failed to create namespace $KUBE_NAMESPACE"
exit 1
fi
else
echo "Namespace $KUBE_NAMESPACE already exists."
echo "Namespace \"$KUBE_NAMESPACE\" already exists."
fi
}

Expand Down

0 comments on commit c0ac49c

Please sign in to comment.