Skip to content

Commit

Permalink
ci: Add FORKED_CONTAINERD env var to the tests
Browse files Browse the repository at this point in the history
This will represent whether we will use the forked containerd for the
Confidential Containers use case or not.

This will never land into the main branch, but it's needed here for the
time being.

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Sep 19, 2023
1 parent 6d7723a commit bf5395a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .ci/ci_job_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ init_ci_flags() {
# Build Kata for Confidential Containers
# Values: "yes|no"
export KATA_BUILD_CC="no"
# Use the forked version of containerd for Confidential Containers
# Valyes: "yes|no"
export FORKED_CONTAINERD="no"
# Hypervisor to use
export KATA_HYPERVISOR=""
# Install k8s
Expand Down Expand Up @@ -119,6 +122,7 @@ case "${CI_JOB}" in
"CC_CRI_CONTAINERD"|"CC_CRI_CONTAINERD_K8S")
# Export any CC specific environment variables
export KATA_BUILD_CC="yes"
export FORKED_CONTAINERD="yes"
export MEASURED_ROOTFS="yes"
export AA_KBC="offline_fs_kbc"
if [[ "${CI_JOB}" =~ K8S ]]; then
Expand All @@ -133,6 +137,7 @@ case "${CI_JOB}" in
export CRI_RUNTIME="containerd"
export KATA_HYPERVISOR="qemu"
export KATA_BUILD_CC="yes"
export FORKED_CONTAINERD="yes"
export AA_KBC="offline_fs_kbc"
export TEST_INITRD="yes"
if [[ "${CI_JOB}" =~ K8S ]]; then
Expand All @@ -155,6 +160,7 @@ case "${CI_JOB}" in
export CRI_RUNTIME="containerd"
export KATA_HYPERVISOR="qemu"
export KATA_BUILD_CC="yes"
export FORKED_CONTAINERD="yes"
export MEASURED_ROOTFS="yes"
export AA_KBC="cc_kbc"
export TEE_TYPE="tdx"
Expand All @@ -174,6 +180,7 @@ case "${CI_JOB}" in
export KUBERNETES="yes"
export AA_KBC="offline_fs_kbc"
export KATA_BUILD_CC="yes"
export FORKED_CONTAINERD="yes"
export MEASURED_ROOTFS="yes"
if [[ "${CI_JOB}" =~ TDX ]]; then
export TEE_TYPE="tdx"
Expand All @@ -199,6 +206,7 @@ case "${CI_JOB}" in
export KATA_HYPERVISOR="cloud-hypervisor"
# Export any CC specific environment variables
export KATA_BUILD_CC="yes"
export FORKED_CONTAINERD="yes"
export MEASURED_ROOTFS="yes"
export AA_KBC="offline_fs_kbc"
;;
Expand Down

0 comments on commit bf5395a

Please sign in to comment.