Skip to content

Commit

Permalink
gha: Enable to setup snapshotter but not to run
Browse files Browse the repository at this point in the history
This will make the work that merging the code from CCv0 to main easier for confidential containers developers to properly
enable the coco tests once the tests are ready.

Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com>
  • Loading branch information
ChengyuZhu6 committed Dec 7, 2023
1 parent 97c9682 commit 23f135b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/gha-run-k8s-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ function deploy_k8s() {
}

function install_snapshotter() {
if [ "${SNAPSHOTTER}" == "nydus" ]; then
echo "Skipping install for ${SNAPSHOTTER} snapshotter"
return 0
fi

case "${SNAPSHOTTER}" in
nydus)
nydus_snapshotter_version="$(get_from_kata_deps "externals.nydus-snapshotter.version")"
Expand All @@ -275,6 +280,11 @@ function install_snapshotter() {
}

function cleanup_snapshotter() {
if [ "${SNAPSHOTTER}" == "nydus" ]; then
echo "Skipping cleanup for ${SNAPSHOTTER} snapshotter"
return 0
fi

case "${SNAPSHOTTER}" in
nydus) cleanup_nydus_snapshotter;;
*) >&2 echo "${SNAPSHOTTER} flavour is not supported"; exit 2 ;;
Expand Down
5 changes: 5 additions & 0 deletions tests/integration/kubernetes/gha-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ EOF
function configure_snapshotter() {
echo "::group::Configuring ${SNAPSHOTTER}"

if [ "${SNAPSHOTTER}" == "nydus" ]; then
echo "Skipping configure for ${SNAPSHOTTER} snapshotter"
return 0
fi

case "${SNAPSHOTTER}" in
devmapper) configure_devmapper ;;
nydus) configure_nydus_snapshotter ;;
Expand Down

0 comments on commit 23f135b

Please sign in to comment.