genpolicy: Align agent-ctl OCI Spec with oci-spec-rs

Fixes #9766

Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
Alex Lyn 2024-07-16 16:10:16 +08:00
parent c500fd5761
commit b3eab5ffea
3 changed files with 834 additions and 48 deletions

File diff suppressed because it is too large Load Diff

View File

@ -47,7 +47,7 @@ serde-transcode = "1.1.1"
tokio = {version = "1.38.0", features = ["rt-multi-thread"]}
# OCI container specs.
oci = { path = "../../libs/oci" }
oci-spec = { version = "0.6.8", features = ["runtime"] }
# Kata Agent protocol.
protocols = { path = "../../libs/protocols", features = ["with-serde"] }

View File

@ -20,6 +20,7 @@ use crate::yaml;
use anyhow::Result;
use base64::{engine::general_purpose, Engine as _};
use log::debug;
use oci_spec::runtime as oci;
use protocols::agent;
use serde::{Deserialize, Serialize};
use serde_yaml::Value;