You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reviewing #3216, I noticed the manager interface has a GetCgroups(), which is unused in our codebase.
Looking at its history to see if it was used at some point, but "no longer" used, I found that it was contributed in #2177 to be used by an external consumer. Digging further, that PR was linked to kata-containers/runtime#2351, which is in a repository that has now been archived.
We should look if GetCgroups() is actively used by external consumers, and consider deprecating (and removing) it, if there are no uses.
The text was updated successfully, but these errors were encountered:
Thanks @devimc ! It's only a small bit of code, but I know we're looking at making more packages "internal" (as not all of them are really designed for external consumption), so this one caught my eye.
One other thing, pretty big, which is not used by runc itself, is GetStats. We have lots of code and some tests for these methods, but never use them. The user is, again, kubernetes, and probably cAdvisor, too.
The way to solve it is to have a separate basic cgroup library which is used as a base by both runc and kubernetes. This is the subject of kubernetes/kubernetes#104325, and it's a lot of work that has not been started yet (but I have it in mind).
While reviewing #3216, I noticed the manager interface has a
GetCgroups()
, which is unused in our codebase.Looking at its history to see if it was used at some point, but "no longer" used, I found that it was contributed in #2177 to be used by an external consumer. Digging further, that PR was linked to kata-containers/runtime#2351, which is in a repository that has now been archived.
We should look if
GetCgroups()
is actively used by external consumers, and consider deprecating (and removing) it, if there are no uses.The text was updated successfully, but these errors were encountered: