mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 06:27:39 +00:00
Merge pull request #10207 from amshinde/remove-image-check-cc
Revert "tests: add image check before running coco tests"
This commit is contained in:
commit
11bb9231c2
@ -514,22 +514,6 @@ function cleanup_snapshotter() {
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check existing images to ensure all content is available locally before running tests
|
|
||||||
function image_check() {
|
|
||||||
local ctr_args="sudo ctr "
|
|
||||||
if [[ " k3s rke2 " =~ " ${KUBERNETES} " ]]; then
|
|
||||||
ctr_args+="--address /run/k3s/containerd/containerd.sock "
|
|
||||||
fi
|
|
||||||
ctr_args+="--namespace k8s.io "
|
|
||||||
local incomplete_images=$($ctr_args image check | grep "incomplete" | awk '{print $1}')
|
|
||||||
if [ -z "$incomplete_images" ]; then
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
for incomplete_image in $incomplete_images; do
|
|
||||||
$ctr_args content fetch $incomplete_image || true
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
function deploy_nydus_snapshotter() {
|
function deploy_nydus_snapshotter() {
|
||||||
echo "::group::deploy_nydus_snapshotter"
|
echo "::group::deploy_nydus_snapshotter"
|
||||||
ensure_yq
|
ensure_yq
|
||||||
@ -593,10 +577,6 @@ function deploy_nydus_snapshotter() {
|
|||||||
echo "::group::nydus snapshotter describe"
|
echo "::group::nydus snapshotter describe"
|
||||||
kubectl_retry describe pod --selector=app=nydus-snapshotter -n nydus-system
|
kubectl_retry describe pod --selector=app=nydus-snapshotter -n nydus-system
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::image check"
|
|
||||||
image_check
|
|
||||||
echo "::endgroup::"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanup_nydus_snapshotter() {
|
function cleanup_nydus_snapshotter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user