-
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 basic RunPodSandbox method for cri manager #455
feature: implement basic RunPodSandbox method for cri manager #455
Conversation
@skoo87 @allencloud PTAL |
Codecov Report
@@ Coverage Diff @@
## master #455 +/- ##
=========================================
Coverage ? 19.76%
=========================================
Files ? 34
Lines ? 1634
Branches ? 0
=========================================
Hits ? 323
Misses ? 1276
Partials ? 35
Continue to review full report at Codecov.
|
daemon/mgr/cri.go
Outdated
@@ -2,11 +2,37 @@ package mgr | |||
|
|||
import ( | |||
"fmt" | |||
"strings" | |||
|
|||
pouchtypes "github.com/alibaba/pouch/apis/types" |
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.
pouchtypes -> apitypes
daemon/mgr/cri.go
Outdated
@@ -2,11 +2,37 @@ package mgr | |||
|
|||
import ( | |||
"fmt" | |||
"strings" | |||
|
|||
pouchtypes "github.com/alibaba/pouch/apis/types" | |||
|
|||
"golang.org/x/net/context" |
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.
I don't like the "context" package, I hope to use standard "context" to replace it.
We maybe need to find a way to do it.
WDYT @allencloud
5674e35
to
eaae6e1
Compare
@skoo87 updated. |
// Apply a label to distinguish sandboxes from regular containers. | ||
labels[containerTypeLabelKey] = containerTypeLabelSandbox | ||
|
||
hc := &apitypes.HostConfig{} |
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.
If #459 has been merged, this part needs change, since we should make NetworkingConfig non-nil.
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.
OK, please ping me if it is merged :)
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.
get merged, please rebase, thanks
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.
@allencloud updated.
eaae6e1
to
afa9339
Compare
Signed-off-by: YaoZengzeng <[email protected]>
afa9339
to
804d1f5
Compare
LGTM, and please take a double check @skoo87 if you would like, otherwise I will merge this before 2018. 😄 |
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 use pouch to run a pod:
5.Special notes for reviews