virtcontainers: Extract shim related operations to a separate package#888
virtcontainers: Extract shim related operations to a separate package#888zsc-hw wants to merge 1 commit into
Conversation
7be41a4 to
921baf1
Compare
|
@zsc-hw
|
It will lead to some complexity, but I think that's worth it. You know, I mentioned a lot that I hope to refactor the virtcontainers and decouple each components to seperate dirs, this requires lots of work, but I'm so lazy so this has been postponed for long time. I remember that @bergwolf mentioned this too. Two benefits for seperating these dirs:
So I think @zsc-hw gives us a good start :-) |
|
@sboeuf I tend to agree with @WeiZhang555. Modules with clear interfaces can be put in separate packages and it makes code maintenance easier IMHO. |
|
@bergwolf @WeiZhang555 |
|
Thanks @sboeuf ! The refactoring process might be slow but I think it is the right direction. |
03242c7 to
5e8e3f1
Compare
7b9cc15 to
dddac52
Compare
|
@sboeuf can you take another look at this PR? |
|
@egernst yes I will! |
sboeuf
left a comment
There was a problem hiding this comment.
@zsc-hw the overall PR looks good but I still have a few comments here:
- Please rework the commit message to comply with Kata Containers guidelines (Look at other already merged commits as an example):
- 72 characters max for each line of the commit message
- the Fixes #890 should be after the message
- Make sure you add a space between
virtcontainers:and the rest of the commit title
- Split this commit into at least two different commits:
- First commit taking care of moving the structure definitions to
virtcontainers/pkg/typesand fixing everything that needs to be fixed - Second commit being the move of all shim related parts
- First commit taking care of moving the structure definitions to
|
@zsc-hw any updates on this PR? |
|
Ping @zsc-hw - do you think you'll be able to work on reformatting the commit message? Also, it feels a bit odd having the |
|
@WeiZhang555 @zsc-hw - I'd love to see this PR move forward -- any chance for updates here? |
|
@jodh-intel @egernst |
1c4f043 to
bc4160a
Compare
57f0db8 to
58e0398
Compare
reason: With the increase of code in the "virtcontainers" package, code coupling is also increasing. Therefore, I want to recfactor the code of shim, agent, proxy, network and other related modules, decouple them and put them into a separate package. Now I put the relevant code of "shim" into the independent "shim" package. I hope it can be perfected through your suggestions. If possible, I will continue to reconstruct agent, proxy, network and so on. Fixes: kata-containers#890 Signed-off-by: Shucheng Zhang <zhangshucheng@huawei.com>
|
/retest |
|
@jodh-intel @egernst @sameo @WeiZhang555
|
|
@zsc-hw ping any updates? Thx! |
|
@raravena80 |
|
friendly ping :) |
|
Branch needs updating due to conflicts. |
|
Hi @zsc-hw - please could you rebase to resolve the conflicts on this PR? |

With the increase of code in the "virtcontainers" package,
code coupling is also increasing. Therefore, I want to
recfactor the code of shim, agent, proxy, network
and other related modules, decouple them and put
them into a separate package.
Now I put the relevant code of "shim" into the independent
"shim" package. I hope it can be perfected through
your suggestions. If possible, I will continue to reconstruct
agent, proxy, network and so on.
Fixes: #890
Signed-off-by: Shucheng Zhang zhangshucheng@huawei.com