mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 13:22:28 +00:00
gha: Only do preventive cleanups for baremetal
This takes a few minutes that could be saved, so let's avoid doing this on all the platforms, but simply do this when it's needed (the baremetal use case). Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
ee2ef0641c
commit
dbd0d4a090
@ -151,7 +151,9 @@ function deploy_kata() {
|
|||||||
[ "$platform" = "kcli" ] && \
|
[ "$platform" = "kcli" ] && \
|
||||||
export KUBECONFIG="$HOME/.kcli/clusters/${CLUSTER_NAME:-kata-k8s}/auth/kubeconfig"
|
export KUBECONFIG="$HOME/.kcli/clusters/${CLUSTER_NAME:-kata-k8s}/auth/kubeconfig"
|
||||||
|
|
||||||
|
if [ "${K8S_TEST_HOST_TYPE}" = "baremetal" ]; then
|
||||||
cleanup_kata_deploy || true
|
cleanup_kata_deploy || true
|
||||||
|
fi
|
||||||
|
|
||||||
set_default_cluster_namespace
|
set_default_cluster_namespace
|
||||||
|
|
||||||
@ -499,7 +501,9 @@ function deploy_nydus_snapshotter() {
|
|||||||
git clone -b "${nydus_snapshotter_version}" "${nydus_snapshotter_url}" "${nydus_snapshotter_install_dir}"
|
git clone -b "${nydus_snapshotter_version}" "${nydus_snapshotter_url}" "${nydus_snapshotter_install_dir}"
|
||||||
|
|
||||||
pushd "$nydus_snapshotter_install_dir"
|
pushd "$nydus_snapshotter_install_dir"
|
||||||
|
if [ "${K8S_TEST_HOST_TYPE}" = "baremetal" ]; then
|
||||||
cleanup_nydus_snapshotter || true
|
cleanup_nydus_snapshotter || true
|
||||||
|
fi
|
||||||
if [ "${PULL_TYPE}" == "guest-pull" ]; then
|
if [ "${PULL_TYPE}" == "guest-pull" ]; then
|
||||||
# Enable guest pull feature in nydus snapshotter
|
# Enable guest pull feature in nydus snapshotter
|
||||||
yq write -i \
|
yq write -i \
|
||||||
|
Loading…
Reference in New Issue
Block a user