Skip to content
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

Refactor image related functions to use docker engine-api #23800

Merged
merged 3 commits into from
Apr 24, 2016

Conversation

resouer
Copy link
Contributor

@resouer resouer commented Apr 3, 2016

ref #23563

cc @Random-Liu will add more work after initial review.

@k8s-github-robot k8s-github-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. release-note-label-needed labels Apr 3, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 3, 2016

GCE e2e build/test passed for commit 6091a1a6f88a66bf5e12e3909c456791fbeeaf49.

@k8s-bot
Copy link

k8s-bot commented Apr 3, 2016

GCE e2e build/test passed for commit 3f2000a3e3ccb7f7397e73bd93f09a48ee9822b4.

@Random-Liu
Copy link
Member

@resouer Thanks a lot! Really appreciate your help~ Will review today. :)

@Random-Liu Random-Liu assigned Random-Liu and unassigned dchen1107 Apr 4, 2016
)

// APIImage is the container information returned by ContainerList
type APIImage dockertypes.Image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided not to define our own types to make the interface cleaner. (See #23699)
Maybe just use dockertypes.Image instead. :)

@Random-Liu
Copy link
Member

Some type naming nits, aside from that LGTM.

My plan is to finish most work this week. If you have time, you could work on InspectImage and RemoveImage as well. I'll work on other functions first, and come back to these two functions if you don't have time to do that. :)

@Random-Liu
Copy link
Member

@resouer Just FYI, I've finished all but image related functions #23907. Have you started working on that? If not, I'll move on. :)

@resouer
Copy link
Contributor Author

resouer commented Apr 6, 2016

@Random-Liu I am doing image related functions and will update here

@Random-Liu
Copy link
Member

@resouer Could you leave the PullImage to me? Because there are some secret related things, I need to discuss with people. :)

@Random-Liu Random-Liu added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-label-needed labels Apr 6, 2016
@resouer
Copy link
Contributor Author

resouer commented Apr 7, 2016

@Random-Liu Sure, I will remove that commit.

@Random-Liu Random-Liu added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Apr 7, 2016
@resouer resouer changed the title Refactor list image to use docker engine-api Refactor image related functions to use docker engine-api Apr 7, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 7, 2016

GCE e2e build/test passed for commit e37da602b7083582e6dda628d409dff65bb93054.

@Random-Liu
Copy link
Member

@resouer
If you have finished that commit, just sent it here. I meant that if you hadn't work on it, left it to me. Since you already did, just use yours~

@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 7, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 7, 2016

GCE e2e build/test passed for commit 22e8b5f3cf22da07020c0fa694940722493266f5.

opts := docker.PullImageOptions{
Repository: repoToPull,
Tag: tag,
// opts := docker.PullImageOptions{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the commented code.

@k8s-bot
Copy link

k8s-bot commented Apr 18, 2016

GCE e2e build/test passed for commit 6faff2221f90929f229a5c6b0ea0fa2155cf7107.

RegistryAuth: base64Auth,
}, nil)
opts.RegistryAuth = base64Auth
resp, err := d.client.ImagePull(getDefaultContext(), opts, nil)
Copy link
Member

@Random-Liu Random-Liu Apr 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@Random-Liu Random-Liu Apr 19, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@resouer Could you please fix this? After this we could get this PR merged as soon as possible. :)

@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 22, 2016
RemoveImage(image string) error
InspectImage(image string) (*dockertypes.ImageInspect, error)
ListImages(opts dockertypes.ImageListOptions) ([]dockertypes.Image, error)
PullImage(image string, auth dockertypes.AuthConfig, opts dockertypes.ImagePullOptions) error
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as by others below.

Why are we adding an image argument when the opts contain the image information.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MHBauer We do this, because:

  1. Engine-api has moved image out of ImagePullOptions Make required arguments required. docker/engine-api#162, it will be easier to bump up the engine-api version later.
  2. This is more intuitive Make required arguments required - optional arguments should be optional docker/engine-api#137. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay.

@k8s-github-robot k8s-github-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 23, 2016
@k8s-bot
Copy link

k8s-bot commented Apr 23, 2016

GCE e2e build/test passed for commit a393947.

@Random-Liu Random-Liu added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 23, 2016
@Random-Liu
Copy link
Member

@resouer Thanks a lot! LGTM.

@k8s-bot
Copy link

k8s-bot commented Apr 23, 2016

GCE e2e build/test passed for commit a393947.

@k8s-bot
Copy link

k8s-bot commented Apr 23, 2016

GCE e2e build/test failed for commit a393947.

Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake.

@Random-Liu
Copy link
Member

@k8s-bot test this issue #24265.

@k8s-bot
Copy link

k8s-bot commented Apr 24, 2016

GCE e2e build/test passed for commit a393947.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Apr 24, 2016

GCE e2e build/test passed for commit a393947.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 4f9e872 into kubernetes:master Apr 24, 2016
@resouer resouer deleted the image-refactor branch April 24, 2016 03:52
openshift-publish-robot pushed a commit to openshift/kubernetes that referenced this pull request Sep 16, 2019
UPSTREAM: 82697: Fix TestBlockMapperMapDeviceNotSupportAttach informer sync race

Origin-commit: 4dd18181ce98cd4d866bb7acdfe3c49961119384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.