diff --git a/tests/integration/kubernetes/k8s-guest-pull-image.bats b/tests/integration/kubernetes/k8s-guest-pull-image.bats index 4a9a133ad6..35d412c567 100644 --- a/tests/integration/kubernetes/k8s-guest-pull-image.bats +++ b/tests/integration/kubernetes/k8s-guest-pull-image.bats @@ -47,6 +47,11 @@ setup() { "io.containerd.cri.runtime-handler" \ "kata-${KATA_HYPERVISOR}" + [[ " ${SUPPORTED_NON_TEE_HYPERVISORS} " =~ " ${KATA_HYPERVISOR} " ]] && \ + set_metadata_annotation "$kata_pod_with_nydus_config" \ + "io.katacontainers.config.hypervisor.image" \ + "/opt/kata/share/kata-containers/kata-containers-confidential.img" + # For debug sake echo "Pod $kata_pod_with_nydus_config file:" cat $kata_pod_with_nydus_config @@ -112,6 +117,11 @@ setup() { "io.containerd.cri.runtime-handler" \ "kata-${KATA_HYPERVISOR}" + [[ " ${SUPPORTED_NON_TEE_HYPERVISORS} " =~ " ${KATA_HYPERVISOR} " ]] && \ + set_metadata_annotation "$kata_pod_with_nydus_config" \ + "io.katacontainers.config.hypervisor.image" \ + "/opt/kata/share/kata-containers/kata-containers-confidential.img" + # For debug sake echo "Pod $kata_pod_with_nydus_config file:" cat $kata_pod_with_nydus_config @@ -190,6 +200,11 @@ setup() { "io.containerd.cri.runtime-handler" \ "kata-${KATA_HYPERVISOR}" + [[ " ${SUPPORTED_NON_TEE_HYPERVISORS} " =~ " ${KATA_HYPERVISOR} " ]] && \ + set_metadata_annotation "$kata_pod_with_nydus_config" \ + "io.katacontainers.config.hypervisor.image" \ + "/opt/kata/share/kata-containers/kata-containers-confidential.img" + # For debug sake echo "Pod $kata_pod_with_nydus_config file:" cat $kata_pod_with_nydus_config