moby / libnetwork

networking for containers
Apache License 2.0
2.15k stars 880 forks source link

Transfer to moby/moby #2522

Open cpuguy83 opened 4 years ago

cpuguy83 commented 4 years ago

It was brought up on the maintainers chat that we should probably merge libnetwork back into moby/moby. This would simplify vendoring/import issues and contributions.

/cc @thaJeztah @justincormack @AkihiroSuda

cpuguy83 commented 4 years ago

We should think about how we can migrate issues/PR's (and what should just be closed/merged before doing so).

@AkihiroSuda mentioned that we could transfer libnetwork to the moby org first, this would allow us to transfer the issues to the moby/moby repo after the codebase is re-integrated with moby/moby.

arkodg commented 4 years ago

PTAL @mavenugo

mavenugo commented 4 years ago

Yes. This is a good idea. am a 👍 to this proposal.

selansen commented 4 years ago

been talking about it for very long time. It will save lot of time.

thaJeztah commented 4 years ago

generally 👍

first moving the repo to the moby org sounds good.

we should spend some time to go through pull requests that are open to see if there's ones that we want to have

before integrating the code into moby/moby;

thaJeztah commented 4 years ago

I noticed that kubernetes is vendoring libnetwork, so we need to make sure we don't break them (and make it easy to vendor the parts they need)

justincormack commented 4 years ago

Nothing should break in short term due to redirects. Why is k8s vendoring libnetwork anyway!!

I am going to mover this to moby org.

cpuguy83 commented 4 years ago

It's importing ipvs code from here.

justincormack commented 4 years ago

Done. (the move, reopened for the merge into moby/moby).

thaJeztah commented 4 years ago

/cc @dims (for kubernetes)

dims commented 4 years ago

🙏 @thaJeztah

dims commented 4 years ago

yep, we use it for ipvs - https://cs.k8s.io/?q=github.com%2Fdocker%2Flibnetwork&i=nope&files=%5Epkg&repos=kubernetes/kubernetes

cpuguy83 commented 4 years ago

Seems like a good candidate to move to separate repo.

dims commented 4 years ago

@cpuguy83 @thaJeztah @mavenugo @justincormack - so for a while, in kubernetes/kubernetes we have been trying to remove direct references to docker/docker (or moby/moby), splitting out the dockershim (or at least limiting its use in specific packages optionally imported) would take a whole bunch of references out, So that was our main thrust. But we still had a whole bunch of references to docker/docker. Over a period of time we have been able to prune the usage. Doing what is proposed here would be going backwards for us unfortunately.

I'd go further to request that we split out additional stuff from docker/docker (or moby/moby) into a library namely the sysinfo/parsers:

└── pkg
    ├── parsers
    │   ├── kernel
    │   └── operatingsystem
    └── sysinfo

used by cadvisor (https://cs.k8s.io/?q=pkg%2Fparsers&i=nope&files=.*%5C.go&repos=kubernetes/kubernetes)

and another package for terminal stuff:

└── pkg
    └── term
        └── windows

used directly by kubernetes CLI (https://cs.k8s.io/?q=pkg%2Fterm&i=nope&files=.*%5C.go&repos=kubernetes/kubernetes)

cc @liggitt

cpuguy83 commented 4 years ago

@dims If we move ipvs out of libnetwork to a separate repo, you should be able to consume just the ipvs package.

dims commented 4 years ago

@cpuguy83 yep, that works!