Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 3b93990

Browse files
committed
ci: CC | Add a new job to pull image inside the guest
And let's hope for the buest. :-) Signed-off-by: Fabiano Fidêncio <[email protected]>
1 parent 6cf4306 commit 3b93990

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.ci/ci_job_flags.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ init_ci_flags() {
4040
# Use the forked version of containerd for Confidential Containers
4141
# Valyes: "yes|no"
4242
export FORKED_CONTAINERD="no"
43+
# Do the pull on the guest using the upstream containerd for Confidential Containers
44+
# Values: "yes|no"
45+
export IMAGE_OFFLOAD_TO_GUEST="no"
4346
# Hypervisor to use
4447
export KATA_HYPERVISOR=""
4548
# Install k8s
@@ -131,6 +134,20 @@ case "${CI_JOB}" in
131134
;;
132135
esac
133136
;;
137+
"CC_CRI_CONTAINERD_K8S_IMAGE_OFFLOAD_TO_GUEST")
138+
# This job only tests containerd + k8s
139+
init_ci_flags
140+
export CRI_CONTAINERD="yes"
141+
export CRI_RUNTIME="containerd"
142+
export KATA_HYPERVISOR="qemu"
143+
export KUBERNETES="yes"
144+
# Export any CC specific environment variables
145+
export KATA_BUILD_CC="yes"
146+
export FORKED_CONTAINERD="no"
147+
export IMAGE_OFFLOAD_TO_GUEST="yes"
148+
export MEASURED_ROOTFS="yes"
149+
export AA_KBC="offline_fs_kbc"
150+
;;
134151
"CC_SEV_CRI_CONTAINERD_K8S"|"CC_SNP_CRI_CONTAINERD_K8S")
135152
init_ci_flags
136153
export CRI_CONTAINERD="yes"

.ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ case "${CI_JOB}" in
8383
info "Running Confidential Containers tests for AMD SEV-SNP"
8484
sudo -E PATH="$PATH" CRI_RUNTIME="containerd" bash -c "make cc-snp-kubernetes"
8585
;;
86-
"CC_CRI_CONTAINERD_K8S"|"CC_CRI_CONTAINERD_K8S_TDX_QEMU"|"CC_CRI_CONTAINERD_K8S_SE_QEMU"|"CC_CRI_CONTAINERD_K8S_TDX_CLOUD_HYPERVISOR")
86+
"CC_CRI_CONTAINERD_K8S"|"CC_CRI_CONTAINERD_K8S_TDX_QEMU"|"CC_CRI_CONTAINERD_K8S_SE_QEMU"|"CC_CRI_CONTAINERD_K8S_TDX_CLOUD_HYPERVISOR"|"CC_CRI_CONTAINERD_K8S_IMAGE_OFFLOAD_TO_GUEST")
8787
info "Running Confidential Container tests"
8888
sudo -E PATH="$PATH" CRI_RUNTIME="containerd" bash -c "make cc-kubernetes"
8989
;;

0 commit comments

Comments
 (0)