-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
image: set error when we receive unknown schema for the image #16319
Conversation
We've agreed with Michal to have it still, since it prevents nasty panics and provides more friendly error (wrt to the first commit). The other one actually fixes the problem. /lgtm |
@smarterclayton we might need to backport this down to 3.3 as z-stream :-((( |
Nothing merged since this started and can't until this goes in. Marking retest-not-required just to hurry it along. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dmage, mfojtik, soltysh The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test cmd etcd timeout |
still failing a dockerhub integration test:
|
/retest Please review the full test history for this PR and help us cut down flakes. |
Automatic merge from submit-queue |
Automatic merge from submit-queue (batch tested with PRs 13840, 16033, 16322, 16441) Import manifest lists with linux/amd64 platform This is an alternative for #16319
@dmage @soltysh
The error we get is:
I0913 06:32:59.350152 24974 importer.go:551] unsupported manifest type: *manifestlist.DeserializedManifestList
This will result into the .Image field to be nil which we then later panic on. I'm not sure how this was not broken before or if something changed in DockerHub. The mongo and redis images in DockerHub both have manifest lists, but we should be converting them to schema2 automatically?
This PR just propagate that error to image stream status instead of panicking the importer. We should investigate further.