mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-04 05:31:32 +00:00
feat: implement kernel / initrd oci image support (#103)
* feat: implement kernel / initrd oci image support * fix: implement image urls more faithfully
This commit is contained in:
@ -217,6 +217,13 @@ impl OciImageFetcher {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(ref digest) = image.digest {
|
||||
if digest != manifest.digest() {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
found = Some(manifest);
|
||||
break;
|
||||
}
|
||||
@ -240,7 +247,7 @@ impl OciImageFetcher {
|
||||
|
||||
let mut client = OciRegistryClient::new(image.registry_url()?, self.platform.clone())?;
|
||||
let (manifest, descriptor, digest) = client
|
||||
.get_manifest_with_digest(&image.name, &image.reference)
|
||||
.get_manifest_with_digest(&image.name, image.reference.as_ref(), image.digest.as_ref())
|
||||
.await?;
|
||||
let descriptor = descriptor.unwrap_or_else(|| {
|
||||
DescriptorBuilder::default()
|
||||
|
Reference in New Issue
Block a user