mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
nydus: Use kata-${KATA_HYPERVISOR}
instead of kata
This will ensure we're testing with the correct runtime, instead of using the `default` one. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
f6df3d6efb
commit
b8a8dfcd15
@ -99,8 +99,8 @@ function config_containerd() {
|
||||
[plugins.cri.containerd.runtimes.runc.options]
|
||||
BinaryName = "${runc_path}"
|
||||
Root = ""
|
||||
[plugins.cri.containerd.runtimes.kata]
|
||||
runtime_type = "io.containerd.kata.v2"
|
||||
[plugins.cri.containerd.runtimes.kata-${KATA_HYPERVISOR}]
|
||||
runtime_type = "io.containerd.kata-${KATA_HYPERVISOR}.v2"
|
||||
privileged_without_host_devices = true
|
||||
EOF
|
||||
}
|
||||
@ -127,7 +127,7 @@ function setup() {
|
||||
|
||||
function run_test() {
|
||||
sudo -E crictl --timeout=20s pull "${IMAGE}"
|
||||
pod=$(sudo -E crictl --timeout=20s runp -r kata $dir_path/nydus-sandbox.yaml)
|
||||
pod=$(sudo -E crictl --timeout=20s runp -r kata-${KATA_HYPERVISOR} $dir_path/nydus-sandbox.yaml)
|
||||
echo "Pod $pod created"
|
||||
cnt=$(sudo -E crictl --timeout=20s create $pod $dir_path/nydus-container.yaml $dir_path/nydus-sandbox.yaml)
|
||||
echo "Container $cnt created"
|
||||
|
Loading…
Reference in New Issue
Block a user