-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Support pulling OCI Image Index manifests #3715
Support pulling OCI Image Index manifests #3715
Conversation
@rquinio Thank you; we'll review next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks very good; I apologize for the delay.
Could you run ./gradlew goJF
to reformat the code (details? That should fix the code coverage by allowing tests to run.
jib-core/src/main/java/com/google/cloud/tools/jib/image/json/ManifestListTemplate.java
Outdated
Show resolved
Hide resolved
367fe4c
to
0b3ff8a
Compare
No worries. Hopefully I've fixed the formatting issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add tests for:
AbstractManifestPuller.getAccept()
returning the correct media type forOciIndexTemplate.class
- `AbstractManifestPuller.getManifestTemplateFromJson() returning the right thing
Thank you!
0b3ff8a
to
98b0c5a
Compare
Done ! I also took the opportunity to fix missing coverage in PullBaseImageStep for manifest lists pulling and case where the target architecture is not in the list. |
Test failure:
|
98b0c5a
to
c849569
Compare
Should be fixed, testCall_allMirrorsFail was wrongly using the client factory with new V22ManifestList mocks, instead of the old V22ManifestTeplate mock. |
@rquinio Thank you! I'm afraid we need a bit more testing to pass the 80% coverage gate. |
- Add Accept header application/vnd.oci.image.index.v1+json during base image pull - Re-use the logic from V22ManifestListTemplate to select the target platform diget via a new interface ManifestListTemplate
c849569
to
93962c4
Compare
@elefeint I've added a test for POJO -> JSON serialization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I agree that the two formats could easily diverge in the future.
SonarCloud Quality Gate failed. |
Resolves #2749
Implementation follows #3700 (comment)
Before filing a pull request, make sure to do the following:
This helps to reduce the chance of having a pull request rejected.