Fix Container Repository Geo replication when media type is absent
requested to merge 386559-geo-images-with-mediatype-application-vnd-oci-image-config-v1-json-fails-to-replicate-with into master
What does this MR do and why?
OCI specification permits not including the mediaType parameter in the image manifest. This MR fixes the failure in that case. Besides that, it fixes the case when the OCI image contains an OCI artifact. It's possible to isolate the second bug fix into separate MR but It would increase the cost of review cycles so I ended up creating a single MR because the changes are simple, let me know if you have any objections.
How to set up and validate locally
Create Dockerfile:
FROM debian:stretch-slim
CMD ["/bin/true"]
buildah bud {container_name}
buildah push {container_name}
Then check if the secondary site replicated this image correctly.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #386559 (closed)
Edited by Valery Sizov