Merge pull request #9265 from GabyCT/topic/fixnydusclean

gha: Fix nydus namespace clean up
This commit is contained in:
GabyCT 2024-03-20 16:17:38 -06:00 committed by GitHub
commit 03f3d3491d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -508,7 +508,7 @@ function cleanup_nydus_snapshotter() {
fi fi
sleep 180s sleep 180s
kubectl delete -f "misc/snapshotter/nydus-snapshotter-rbac.yaml" 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 popd
sleep 30s sleep 30s
echo "::endgroup::" echo "::endgroup::"