mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 12:50:54 +00:00
krata: fix support for oci-archive style tars in image seeding
This commit is contained in:
parent
9e57bb60bf
commit
32a1a36ad4
@ -156,7 +156,12 @@ impl OciImageDownloader {
|
|||||||
continue;
|
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;
|
continue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user