-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make blob reuse choices manifest-format-sensitive, and allow conversions when writing to format-agnostic transports #2213
Commits on Feb 2, 2024
-
Try all manifest formats if the destinations accepts all of them
We might want to trigger a conversion to OCI if the source is not OCI, but the destination already contains a Zstd version of a layer. We can do that for destinations that express a restricted list of manifest formats, so it is unexpected that completely unrestricted destinations can't trigger a conversion, and just fail (right now), or perhaps don't fail but unnecessarily upload (in the future), in that case. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for c438c69 - Browse repository at this point
Copy the full SHA c438c69View commit details -
Beautify determineManifestConversion a bit
Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for bbaad3d - Browse repository at this point
Copy the full SHA bbaad3dView commit details -
... to be a bit more similar to PutBlobOptions, to be consistent with the constructor, and to start with identification before parameters. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 2879f25 - Browse repository at this point
Copy the full SHA 2879f25View commit details -
Make manifestConversionPlan a field of imageCopier
We will need to access it from copyLayer. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ea7437e - Browse repository at this point
Copy the full SHA ea7437eView commit details -
Refactor BlobMatchesRequiredCompression a bit
... to allow adding more conditions Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 4f86a47 - Browse repository at this point
Copy the full SHA 4f86a47View commit details -
Rename *BlobMatchesRequiredCompression to *CandidateMatchesTryReusing…
…BlobOptions ... because we will add more reasons to reject a match. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for ffd21be - Browse repository at this point
Copy the full SHA ffd21beView commit details -
Always pass OriginalCompression to TryReusingBlobWithOptions
There's no reason not to, and we will need it in other cases as well. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 7a9148a - Browse repository at this point
Copy the full SHA 7a9148aView commit details -
Add an optionalCompressionName helper
... and eliminate incorrectly named requiredCompression variables by using it. Should not change behavior. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 4d91fda - Browse repository at this point
Copy the full SHA 4d91fdaView commit details -
Add and implement TryReusingOptions.PossibleManifestFormats
... so that we limit blob reuse to acceptable conversion formats, based on possible manifest formats. Implement it in CandidateMatchesTryReusingBlobOptions, covering all (in-tree) implementations. We still _try_ converting to schema2/schema1 (and upload the schema1 empty layer to the destination registry) before succeeding with OCI. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 8aadec3 - Browse repository at this point
Copy the full SHA 8aadec3View commit details