Skip to content

Commit 1293207

Browse files
authored
Fix namespace existence check in destroy.yml
1 parent 98e4ce7 commit 1293207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/destroy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ jobs:
342342
local ns=$1
343343
echo "========== Processing namespace: $ns =========="
344344
345-
if ! kubectl get namespace $ns --ignore-not-found 2>/dev/null; then
346-
echo "✅ Namespace $ns does not exist"
345+
if ! kubectl get namespace "$ns" &>/dev/null; then
346+
echo "✅ Namespace $ns does not exist, skipping..."
347347
return 0
348348
fi
349349

0 commit comments

Comments
 (0)