-
Notifications
You must be signed in to change notification settings - Fork 2.2k
cgroups separation followup #4784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Seeing a weird golangci-lint warning: which I am not seeing locally or in any other PRs. |
Signed-off-by: Kir Kolyshkin <[email protected]>
The per-file deprecation in cgroup_deprecated.go is not working, let's replace it. Link to Hooks.Run in Hook.Run deprecation notice. Signed-off-by: Kir Kolyshkin <[email protected]>
Signed-off-by: Kir Kolyshkin <[email protected]>
It went away once I've forcefully removed golangci-lint-action cache from GHA CI. This is very wrong. |
rata
left a comment
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, just one question that is trivial to address
| // Cgroups specifies specific cgroup settings for the various subsystems that the container is | ||
| // placed into to limit the resources the container has available. | ||
| Cgroups *Cgroup `json:"cgroups"` | ||
| Cgroups *cgroups.Cgroup `json:"cgroups"` |
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.
Do we want to keep the Cgroup type on this package, then?
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.
Do we want to keep the Cgroup type on this package, then?
I think we do. There are libcontainer users who might need time to switch to opencontainers/cgroups properly.
Now, Cgroup is (now) clearly marked as deprecated, hinting that they should switch, and by not removing it we're giving users time to do so.
|
1.3 backport: #4788 |
This is a followup to #4638, fixing a few minor issues I found just now.
See individual commits for details.