tests/k8s: use CoCo image on guest-pull when non-TEE

When running on non-TEE environments (e.g. KATA_HYPERVISOR=qemu) the tests should
be stressing the CoCo image (/opt/kata/share/kata-containers/kata-containers-confidential.img)
although currently the default image/initrd is built to be able to do guest-pull as well.

Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
This commit is contained in:
Wainer dos Santos Moschetta
2024-04-05 20:40:28 -03:00
parent c24f13431d
commit 3508f3a43a

View File

@@ -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