-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
libcontainer/userns: migrate to github.com/moby/sys/userns #4350
Conversation
cfb8cb4
to
8854ad2
Compare
8854ad2
to
3d0a6e5
Compare
3d0a6e5
to
a241e83
Compare
@@ -1,8 +1,13 @@ | |||
// Deprecated: use github.com/moby/sys/userns |
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.
Can we just remove libct/userns ?
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 think the concern is downstream users that import github.com/opencontainers/runc/libcontainer/userns
. It seems there are a fair number of places that import this package unfortunately (though it seems they're mostly kubelet and kubelet forks and buildah?).
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.
Yes, correct; mostly to give potential users of this a warning that they should use the separate module instead. We can decide how long to keep the alias in place (although it doesn't give a significant amount of maintenance)
The userns package was moved to the moby/sys/userns module at commit 3778ae6. This patch deprecates the old location, and adds it as an alias for the moby/sys/userns package. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
a241e83
to
9b60a93
Compare
@kolyshkin @cyphar this one good to go? |
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.
LGTM
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
The code from github.com/opencontainers/runc/libcontainer/userns package was moved into github.com/moby/sys/user and github.com/moby/sys/userns (see [1]), and the runc package is now deprecated in favor of moby/sys (see [2]). In addition, moby/sys/userns now has a non-Linux implementation, so pkg/kubelet/user/userns package (introduced in commit 2e999ff to make a non-Linux implementation) is not really needed anymore. Let's switch to moby/sys/userns, and remove the package. [1]: https://github.com/moby/sys/releases/tag/userns%2Fv0.1.0 [2]: opencontainers/runc#4350 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
internal
#3028The userns package was moved to moby/sys/userns module at commit 3778ae6.
This patch deprecates the old location, and adds it as an alias for the moby/sys/userns package.