krata: fix support for oci-archive style tars in image seeding

This commit is contained in:
Alex Zenla 2024-03-13 15:13:20 +00:00
parent 9e57bb60bf
commit 32a1a36ad4
No known key found for this signature in database
GPG Key ID: 067B238899B51269

View File

@ -156,7 +156,12 @@ impl OciImageDownloader {
continue;
};
let Some(image_name) = annotations.get("io.containerd.image.name") else {
let mut image_name = annotations.get("io.containerd.image.name");
if image_name.is_none() {
image_name = annotations.get("org.opencontainers.image.ref.name");
}
let Some(image_name) = image_name else {
continue;
};