-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Condition memory checks on cgroup version. #3419
Conversation
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
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.
Well done! Could you make clang-format
the code? The lint check has failed.
Sure! Formatted the code. |
Codecov Report
@@ Coverage Diff @@
## master #3419 +/- ##
==========================================
+ Coverage 85.23% 85.28% +0.04%
==========================================
Files 1277 1278 +1
Lines 119088 119198 +110
==========================================
+ Hits 101502 101655 +153
+ Misses 17586 17543 -43
Continue to review full report at Codecov.
|
@Sophie-Xie please kindly cherry-pick this PR to 2.6.x & 3.x |
* Condition memory checks on cgroup version. * Fix formatting.
* Condition memory checks on cgroup version. * Fix formatting. Co-authored-by: Igor Rekun <[email protected]>
What type of PR is this?
What does this PR do?
Fixes reading memory stats under cgroup v2.
Which issue(s)/PR(s) this PR relates to?
#3278
Special notes for your reviewer, ex. impact of this fix, etc:
memory.max return 'max' as string when no --memory flag provided to container on startup.
What should I do about it?
Additional context:
Checklist:
Release notes:
Please confirm whether to reflect in release notes and how to describe: