Cleanup code#5383
Conversation
|
Hi @wzshiming. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
Build succeeded.
|
There was a problem hiding this comment.
Well. For the dependency, the runtime package depends on pkg/process package. :) The duplicate code is not bad in some case.
There was a problem hiding this comment.
the runtime package depends on pkg/process package
Doesn't seem so
There was a problem hiding this comment.
The runtime package is almost used to define interface and the runtime/{v1,v2}/{runc,shim} packages share that pkg/process. If possible, I would like to see the NewBinaryCmd in pkg instead of runtime
41a93b8 to
8d2220e
Compare
Signed-off-by: Shiming Zhang <[email protected]>
8d2220e to
7966a66
Compare
|
Build succeeded.
|
Clean up the code, move
runtime.NewBinaryCmdtoprocess.NewBinaryCmdand useprocess.NewBinaryCmddirectlycontainerd/runtime/io.go
Lines 25 to 45 in bbbd851