mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
Revert "ci: temporarily avoid using the Mariner Host image"
This reverts commit e8405590c1
.
Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
@@ -125,7 +125,8 @@ function create_cluster() {
|
||||
-s "$(_print_instance_type)" \
|
||||
--node-count 1 \
|
||||
--generate-ssh-keys \
|
||||
--tags "${tags[@]}"
|
||||
--tags "${tags[@]}" \
|
||||
$([[ "${KATA_HOST_OS}" = "cbl-mariner" ]] && echo "--os-sku AzureLinux --workload-runtime KataMshvVmIsolation")
|
||||
}
|
||||
|
||||
function install_bats() {
|
||||
|
@@ -101,7 +101,9 @@ add_annotations_to_yaml() {
|
||||
|
||||
add_cbl_mariner_specific_annotations() {
|
||||
if [[ "${KATA_HOST_OS}" = "cbl-mariner" ]]; then
|
||||
info "Add image path annotation for cbl-mariner"
|
||||
info "Add kernel and image path and annotations for cbl-mariner"
|
||||
local mariner_annotation_kernel="io.katacontainers.config.hypervisor.kernel"
|
||||
local mariner_kernel_path="/usr/share/cloud-hypervisor/vmlinux.bin"
|
||||
|
||||
local mariner_annotation_image="io.katacontainers.config.hypervisor.image"
|
||||
local mariner_image_path="/opt/kata/share/kata-containers/kata-containers-mariner.img"
|
||||
@@ -111,6 +113,7 @@ add_cbl_mariner_specific_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_image}" "${mariner_image_path}"
|
||||
add_annotations_to_yaml "${K8S_TEST_YAML}" "${mariner_annotation_disable_image_nvdimm}" "${mariner_disable_image_nvdimm}"
|
||||
done
|
||||
|
@@ -127,11 +127,25 @@ adapt_common_policy_settings_for_non_coco() {
|
||||
sudo mv temp.json "${settings_dir}/genpolicy-settings.json"
|
||||
}
|
||||
|
||||
# adapt common policy settings for CBL-Mariner Hosts
|
||||
adapt_common_policy_settings_for_cbl_mariner() {
|
||||
local settings_dir=$1
|
||||
|
||||
info "Adapting common policy settings for KATA_HOST_OS=cbl-mariner"
|
||||
jq '.kata_config.oci_version = "1.1.0-rc.1"' "${settings_dir}/genpolicy-settings.json" > temp.json && sudo mv temp.json "${settings_dir}/genpolicy-settings.json"
|
||||
}
|
||||
|
||||
# adapt common policy settings for various platforms
|
||||
adapt_common_policy_settings() {
|
||||
local settings_dir=$1
|
||||
|
||||
is_coco_platform || adapt_common_policy_settings_for_non_coco "${settings_dir}"
|
||||
|
||||
case "${KATA_HOST_OS}" in
|
||||
"cbl-mariner")
|
||||
adapt_common_policy_settings_for_cbl_mariner "${settings_dir}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# If auto-generated policy testing is enabled, make a copy of the genpolicy settings,
|
||||
|
Reference in New Issue
Block a user