mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 17:06:28 +00:00
Merge pull request #10037 from sprt/reinstate-mariner-host
ci: reinstate Mariner host and guest kernel
This commit is contained in:
@@ -96,7 +96,8 @@ function create_cluster() {
|
|||||||
-n "$(_print_cluster_name ${test_type})" \
|
-n "$(_print_cluster_name ${test_type})" \
|
||||||
-s "$(_print_instance_type)" \
|
-s "$(_print_instance_type)" \
|
||||||
--node-count 1 \
|
--node-count 1 \
|
||||||
--generate-ssh-keys
|
--generate-ssh-keys \
|
||||||
|
$([ "${KATA_HOST_OS}" = "cbl-mariner" ] && echo "--os-sku AzureLinux --workload-runtime KataMshvVmIsolation")
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_bats() {
|
function install_bats() {
|
||||||
|
@@ -110,6 +110,7 @@ add_cbl_mariner_kernel_initrd_annotations() {
|
|||||||
|
|
||||||
for K8S_TEST_YAML in runtimeclass_workloads_work/*.yaml
|
for K8S_TEST_YAML in runtimeclass_workloads_work/*.yaml
|
||||||
do
|
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}"
|
add_annotations_to_yaml "${K8S_TEST_YAML}" "${mariner_annotation_initrd}" "${mariner_initrd_path}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@@ -159,6 +159,7 @@ adapt_common_policy_settings_for_cbl_mariner() {
|
|||||||
|
|
||||||
info "Adapting common policy settings for CBL-Mariner"
|
info "Adapting common policy settings for CBL-Mariner"
|
||||||
jq '.request_defaults.UpdateEphemeralMountsRequest = true' "${settings_dir}/genpolicy-settings.json" > temp.json && sudo mv temp.json "${settings_dir}/genpolicy-settings.json"
|
jq '.request_defaults.UpdateEphemeralMountsRequest = true' "${settings_dir}/genpolicy-settings.json" > temp.json && sudo mv temp.json "${settings_dir}/genpolicy-settings.json"
|
||||||
|
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 for various platforms
|
||||||
|
Reference in New Issue
Block a user