-
Notifications
You must be signed in to change notification settings - Fork 239
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
feat(checks): remove checks for cpu and memory limits #712
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.
Nice! Special thanks for updating readme! Left comments about limits for mem and template cahnges.
@@ -48,9 +48,6 @@ func init() { | |||
if p.RequirementsType == "request" || p.RequirementsType == "any" { | |||
process(&results, container.Name, "request", container.Resources.Requests.Memory(), lowerBoundBytes, upperBoundBytes) | |||
} | |||
if p.RequirementsType == "limit" || p.RequirementsType == "any" { | |||
process(&results, container.Name, "limit", container.Resources.Limits.Memory(), lowerBoundBytes, upperBoundBytes) | |||
} |
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.
I think we should not touch templates and only change the check https://github.com/stackrox/kube-linter/pull/712/files#diff-98bbd8809c1b605e233765c4d90b25a932af5d2545dc495de58774f3f3a7c0b2R11
remediation: >- | ||
Set memory requests and limits for your container based on its requirements. | ||
Set memory requests for your container based on its requirements. |
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.
Set memory requests for your container based on its requirements. | |
Set memory limits for your container based on its requirements. |
According to the design we need limits for mem and requests for CPU.
@cwimmer ping |
Closing in favor of #734 |
Fixes: #694
Fixes: #695
This PR removes the checks for cpu and memory limits. It also includes updates to documentation which refer to these checks.