mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +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]
|
[plugins.cri.containerd.runtimes.runc.options]
|
||||||
BinaryName = "${runc_path}"
|
BinaryName = "${runc_path}"
|
||||||
Root = ""
|
Root = ""
|
||||||
[plugins.cri.containerd.runtimes.kata]
|
[plugins.cri.containerd.runtimes.kata-${KATA_HYPERVISOR}]
|
||||||
runtime_type = "io.containerd.kata.v2"
|
runtime_type = "io.containerd.kata-${KATA_HYPERVISOR}.v2"
|
||||||
privileged_without_host_devices = true
|
privileged_without_host_devices = true
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -127,7 +127,7 @@ function setup() {
|
|||||||
|
|
||||||
function run_test() {
|
function run_test() {
|
||||||
sudo -E crictl --timeout=20s pull "${IMAGE}"
|
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"
|
echo "Pod $pod created"
|
||||||
cnt=$(sudo -E crictl --timeout=20s create $pod $dir_path/nydus-container.yaml $dir_path/nydus-sandbox.yaml)
|
cnt=$(sudo -E crictl --timeout=20s create $pod $dir_path/nydus-container.yaml $dir_path/nydus-sandbox.yaml)
|
||||||
echo "Container $cnt created"
|
echo "Container $cnt created"
|
||||||
|
Loading…
Reference in New Issue
Block a user