-
Notifications
You must be signed in to change notification settings - Fork 117
OCPNODE-3874: Remove CgroupModeV1 reference from the code #1428
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
OCPNODE-3874: Remove CgroupModeV1 reference from the code #1428
Conversation
- cgroupv1 has been removed from ocp > 4.19 - Hence, the CgroupModeV1 constant can be safely removed from the api code Signed-off-by: Sai Ramesh Vanka <[email protected]>
|
@sairameshv: This pull request references OCPNODE-3874 which is a valid jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@sairameshv: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
| // in case `apiconfigv1.CgroupMode` not set, it's returned true since | ||
| // the platform's default is cgroupV2 | ||
| return true, nil | ||
| if nodecfg.Spec.CgroupMode == apiconfigv1.CgroupModeV2 || nodecfg.Spec.CgroupMode == apiconfigv1.CgroupModeEmpty { |
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.
this is a helper function that detects if cgroupsV1 or V2 is in use . probably should be removed completely from tests unless there are real scenarios where CgroupMode is empty (and then the test should be renamed a bit) - can be done in a different PR
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, it would be better to cover all the refactoring in a separate PR. This PR is to make sure the CgroupModeV1 constant references are removed/replaced.
|
/cc @mrniranjan @MarSik |
Tal-or
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
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sairameshv, Tal-or, yanirq The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/label verified |
|
@yanirq: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/verified |
|
@yanirq: The In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/verified |
|
@rshemtov13: The In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/verified by @rshemtov13 |
|
@rshemtov13: This PR has been marked as verified by In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Reference:
openshift/api#2579
/cc @wking