Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
debug: always enable the pull using nydus
Browse files Browse the repository at this point in the history
Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Sep 21, 2023
1 parent 1536bac commit d1052a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions integration/confidential/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,8 @@ configure_containerd_for_nydus_snapshotter() {

sudo sed -i 's/disable_snapshot_annotations = .*/disable_snapshot_annotations = false/g' "$containerd_config"
sudo sed -i 's/snapshotter = .*/snapshotter = "nydus"/g' "$containerd_config"

sudo cat ${containerd_config}
}

kill_nydus_snapshotter_process() {
Expand Down
10 changes: 3 additions & 7 deletions integration/kubernetes/confidential/agent_image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,11 @@ test_tag="[cc][agent][kubernetes][containerd]"
setup() {
remove_test_image "$image_unsigned_protected" || true
setup_containerd
if [ "${IMAGE_OFFLOAD_TO_GUEST}" == "yes" ]; then
configure_containerd_for_nydus_snapshotter "/etc/containerd/config.toml"
fi
configure_containerd_for_nydus_snapshotter "/etc/containerd/config.toml"
restart_containerd
reconfigure_kata
if [ "${IMAGE_OFFLOAD_TO_GUEST}" == "yes" ]; then
switch_image_service_offload off
EXPORT_MODE="image_guest_pull" RUNTIMECLASS="$RUNTIMECLASS" configure_nydus_snapshotter
fi
switch_image_service_offload off
EXPORT_MODE="image_guest_pull" RUNTIMECLASS="$RUNTIMECLASS" configure_nydus_snapshotter
}

@test "$test_tag Test can launch pod with measured boot enabled" {
Expand Down

0 comments on commit d1052a1

Please sign in to comment.