We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e4ce7 commit 1293207Copy full SHA for 1293207
.github/workflows/destroy.yml
@@ -342,8 +342,8 @@ jobs:
342
local ns=$1
343
echo "========== Processing namespace: $ns =========="
344
345
- if ! kubectl get namespace $ns --ignore-not-found 2>/dev/null; then
346
- echo "✅ Namespace $ns does not exist"
+ if ! kubectl get namespace "$ns" &>/dev/null; then
+ echo "✅ Namespace $ns does not exist, skipping..."
347
return 0
348
fi
349
0 commit comments