Closed jabrown85 closed 10 months ago
I don't think lifecycle is aware of sparse vs layout at all today and this should change nothing there.
Are we going to need to change the lifecycle at all? Or should that be covered by "has base image"?
As I mentioned on Slack:
skopeo copy
to allow users to override the media type if they want to:
-f, --format string MANIFEST TYPE (oci, v2s1, or v2s2) to use in the destination (default is manifest type of source, with fallbacks)
The media type should only be modified when the user specifies it. In my case I noticed the digest given by the sparse.Image was not the same as the image it was dervied from. This was because the logic to set the media type defaulted to overriding to OCI if the media type was not specified. This commit changes the logic to only override the media type if the user specifies it.