Skip to content

Commit

Permalink
genpolicy: reenable checking the OCI version
Browse files Browse the repository at this point in the history
Fixes: kata-containers#9593

Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
  • Loading branch information
Redent0r committed May 8, 2024
1 parent ed5ea0a commit c585100
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/tools/genpolicy/rules.rego
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ CreateContainerRequest {
p_oci := p_container.OCI

print("CreateContainerRequest: p Version =", p_oci.Version, "i Version =", i_oci.Version)
# TODO: Reenable when the Mariner host is reinstated, see #9593.
# p_oci.Version == i_oci.Version
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
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/kubernetes/tests_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ create_common_genpolicy_settings() {

auto_generate_policy_enabled || return 0

# TODO: Enable when the Mariner host is reinstated, see #9594.
# [ "${KATA_HOST_OS}" = "cbl-mariner" ] && sed -i 's/"oci_version": "1\.1\.0"/"oci_version": "1.1.0-rc.1"/' "${default_genpolicy_settings_dir}/genpolicy-settings.json"

cp "${default_genpolicy_settings_dir}/genpolicy-settings.json" "${genpolicy_settings_dir}"
cp "${default_genpolicy_settings_dir}/rules.rego" "${genpolicy_settings_dir}"

Expand Down

0 comments on commit c585100

Please sign in to comment.