mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
ci: nydus: Treat the snapshotter as a dependency
Instead of deploying and removing the snapshotter on every single run, let's make sure the snapshotter is always deploy on the TDX case. We're doing this as an experiment, in order to see if we'll be able to reduce the failures we've been facing with the nydus snapshotter. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
0223eedda5
commit
3733266a60
@ -415,6 +415,11 @@ function cleanup() {
|
||||
}
|
||||
|
||||
function deploy_snapshotter() {
|
||||
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then
|
||||
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
|
||||
return
|
||||
fi
|
||||
|
||||
echo "::group::Deploying ${SNAPSHOTTER}"
|
||||
case ${SNAPSHOTTER} in
|
||||
nydus) deploy_nydus_snapshotter ;;
|
||||
@ -424,6 +429,11 @@ function deploy_snapshotter() {
|
||||
}
|
||||
|
||||
function cleanup_snapshotter() {
|
||||
if [[ "${KATA_HYPERVISOR}" == "qemu-tdx" ]]; then
|
||||
echo "[Skip] ${SNAPSHOTTER} is pre-installed in the TEE machine"
|
||||
return
|
||||
fi
|
||||
|
||||
echo "::group::Cleanuping ${SNAPSHOTTER}"
|
||||
case ${SNAPSHOTTER} in
|
||||
nydus) cleanup_nydus_snapshotter ;;
|
||||
|
Loading…
Reference in New Issue
Block a user