mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 23:11:57 +00:00
tests: adapt Mariner CI to unblock CH v39 upgrade
The CH v39 upgrade in #9575 is currently blocked because of a bug in the Mariner host kernel. To address this, we temporarily tweak the Mariner CI to use an Ubuntu host and the Kata guest kernel, while retaining the Mariner initrd. This is tracked in #9594. Importantly, this allows us to preserve CI for genpolicy. We had to tweak the default rules.rego however, as the OCI version is now different in the Ubuntu host. This is tracked in #9593. This change has been tested together with CH v39 in #9588. Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
parent
e5e0983b56
commit
0cc2b07a8c
@ -66,7 +66,8 @@ CreateContainerRequest {
|
||||
p_oci := p_container.OCI
|
||||
|
||||
print("CreateContainerRequest: p Version =", p_oci.Version, "i Version =", i_oci.Version)
|
||||
p_oci.Version == i_oci.Version
|
||||
# TODO: Reenable when the Mariner host is reinstated, see #9593.
|
||||
# p_oci.Version == i_oci.Version
|
||||
|
||||
print("CreateContainerRequest: p Readonly =", p_oci.Root.Readonly, "i Readonly =", i_oci.Root.Readonly)
|
||||
p_oci.Root.Readonly == i_oci.Root.Readonly
|
||||
|
@ -96,8 +96,7 @@ function create_cluster() {
|
||||
-n "$(_print_cluster_name ${test_type})" \
|
||||
-s "$(_print_instance_type)" \
|
||||
--node-count 1 \
|
||||
--generate-ssh-keys \
|
||||
$([ "${KATA_HOST_OS}" = "cbl-mariner" ] && echo "--os-sku AzureLinux --workload-runtime KataMshvVmIsolation")
|
||||
--generate-ssh-keys
|
||||
}
|
||||
|
||||
function install_bats() {
|
||||
|
@ -97,7 +97,6 @@ add_cbl_mariner_kernel_initrd_annotations() {
|
||||
|
||||
for K8S_TEST_YAML in runtimeclass_workloads_work/*.yaml
|
||||
do
|
||||
add_annotations_to_yaml "${K8S_TEST_YAML}" "${mariner_annotation_kernel}" "${mariner_kernel_path}"
|
||||
add_annotations_to_yaml "${K8S_TEST_YAML}" "${mariner_annotation_initrd}" "${mariner_initrd_path}"
|
||||
done
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user