Move RunningInUserNS() to its own package#5252
Conversation
|
@AkihiroSuda @estesp ptal 🤗 |
AkihiroSuda
left a comment
There was a problem hiding this comment.
LGTM, but maybe we want to add RunningInUserNS = userns.RunningInUserNS alias in sys to reduce vendoring issues
I recall a discussion around |
This allows using the utility without bringing whole of "sys" with it. Signed-off-by: Sebastiaan van Stijn <[email protected]>
216a178 to
708299c
Compare
|
Updated and added an alias |
I guess that discussion was about Anyway, we don't strictly guarantee compatibility of Go API, so this LGTM. |
No, it was about containerd/sys (don't recall the details, but I think it was more that |
Trying to prevent the
syspackage to become too much of a kitchen-sink 😅This allows using the utility without bringing whole of "sys" with it.