kata-deploy: Add cloud-hypervisor

Now that we have a separate Cloud Hypervisor configuration file for the
rust runtime, add it to the kata-deploy.

See: https://github.com/kata-containers/kata-containers/pull/8250

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
James O. D. Hunt
2023-11-14 17:09:25 +00:00
committed by Fabiano Fidêncio
parent d4e00238ab
commit 158ca17ae7
6 changed files with 31 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ function get_kata_containers_config_path() {
# Map the runtime shim name to the appropriate configuration
# file directory.
case "$shim" in
dragonball) config_path="$rust_config_path" ;;
cloud-hypervisor | dragonball) config_path="$rust_config_path" ;;
*) config_path="$golang_config_path" ;;
esac
@@ -247,7 +247,7 @@ function configure_different_shims_base() {
# Map the runtime shim name to the appropriate
# containerd-shim-kata-v2 binary
case "$shim" in
dragonball)
cloud-hypervisor | dragonball)
ln -sf /opt/kata/runtime-rs/bin/containerd-shim-kata-v2 "${shim_file}" ;;
*)
ln -sf /opt/kata/bin/containerd-shim-kata-v2 "${shim_file}" ;;