Skip to content
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

Closed

Conversation

cwimmer
Copy link

@cwimmer cwimmer commented Feb 2, 2024

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.

@cwimmer cwimmer requested a review from janisz as a code owner February 2, 2024 21:55
@janisz janisz requested a review from rukletsov February 5, 2024 15:05
@janisz janisz added the enhancement New feature or request label Feb 5, 2024
Copy link
Collaborator

@janisz janisz left a 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)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remediation: >-
Set memory requests and limits for your container based on its requirements.
Set memory requests for your container based on its requirements.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@janisz
Copy link
Collaborator

janisz commented Feb 12, 2024

@cwimmer ping

@janisz
Copy link
Collaborator

janisz commented Feb 27, 2024

Closing in favor of #734

@janisz janisz closed this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change unset-memory-requirements check Change unset-cpu-requirements check
2 participants