-
Notifications
You must be signed in to change notification settings - Fork 949
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
feature: implement PullImage and ListImages methods for cri manager #477
feature: implement PullImage and ListImages methods for cri manager #477
Conversation
@skoo87 @allencloud PTAL. |
daemon/mgr/cri.go
Outdated
@@ -247,9 +249,41 @@ func (c *CriManager) Status(ctx context.Context, r *runtime.StatusRequest) (*run | |||
return nil, fmt.Errorf("Status Not Implemented Yet") | |||
} | |||
|
|||
func imageToRuntimeAPIImage(image *apitypes.ImageInfo) (*runtime.Image, error) { |
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 a comment for this function?
Actually I have no strong idea about RuntimeAPIImage.
Thanks. 😄
Codecov Report
@@ Coverage Diff @@
## master #477 +/- ##
=========================================
Coverage ? 19.07%
=========================================
Files ? 34
Lines ? 1693
Branches ? 0
=========================================
Hits ? 323
Misses ? 1335
Partials ? 35
Continue to review full report at Codecov.
|
abcb4d1
to
dc1df7b
Compare
Signed-off-by: YaoZengzeng <[email protected]>
dc1df7b
to
f8de509
Compare
@allencloud updated. |
@@ -259,7 +294,24 @@ func (c *CriManager) ImageStatus(ctx context.Context, r *runtime.ImageStatusRequ | |||
|
|||
// PullImage pulls an image with authentication config. | |||
func (c *CriManager) PullImage(ctx context.Context, r *runtime.PullImageRequest) (*runtime.PullImageResponse, error) { | |||
return nil, fmt.Errorf("PullImage Not Implemented Yet") | |||
// TODO: authentication. | |||
imageRef := r.GetImage().GetImage() |
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.
It makes feel weird, although it is correct totally. 😄
double GetImage().
LGTM, I think we could begin considering adding API integration test. @YaoZengzeng @Letty5411 |
Signed-off-by: YaoZengzeng [email protected]
1.Describe what this PR did
2.Does this pull request fix one issue?
fixes part of #420
3.Describe how you did it
4.Describe how to verify it
Maybe the cri-tools is what you need.
We may use the following method to verify that we can pull and list images:
5.Special notes for reviews