From 4fb8f8705f34716e671349455b061e490d284029 Mon Sep 17 00:00:00 2001 From: Gabriela Cervantes Date: Tue, 12 Mar 2024 21:27:51 +0000 Subject: [PATCH] gha: Fix nydus namespace clean up This PR terminates the nydus namespace to avoid the error of that the flag needs an argument. Fixes #9264 Signed-off-by: Gabriela Cervantes --- tests/integration/kubernetes/gha-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/kubernetes/gha-run.sh b/tests/integration/kubernetes/gha-run.sh index 4c9ad2a70c..da469c9e6c 100755 --- a/tests/integration/kubernetes/gha-run.sh +++ b/tests/integration/kubernetes/gha-run.sh @@ -508,7 +508,7 @@ function cleanup_nydus_snapshotter() { fi sleep 180s kubectl delete -f "misc/snapshotter/nydus-snapshotter-rbac.yaml" - kubectl get ns nydus-system -o json | jq '.spec.finalizers = []' | kubectl replace --raw "/api/v1/namespaces/nydus-system/finalize" -f || true + kubectl get namespace nydus-system -o json | jq 'del(.spec.finalizers)' | kubectl replace --raw "/api/v1/namespaces/nydus-system/finalize" -f - || true popd sleep 30s echo "::endgroup::"