Skip to content

Fix Container Repository Geo replication when media type is absent

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.

Related to #386559 (closed)

Edited by Valery Sizov

Merge request reports