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

[FEATURE_REQUEST] unset-cpu-requirements should use requirementsType: "request" #459

Open
jholecek-rh opened this issue Dec 6, 2022 · 1 comment

Comments

@jholecek-rh
Copy link

Description of the problem/feature request

The requirementsType parameter of the built-in unset-cpu-requirements check is set to any which means that workloads need to specify both CPU requests and CPU limits to pass the check.

This doesn't seem to match the best practices (according to some sources at least) which suggest that:

  • All workloads should set CPU requests
  • Only some workloads should set CPU limits; CPU limits can be actually harmful to some workloads

I suggest softening the built-in check to require only CPU requests to be set.

Description of the existing behavior vs. expected behavior

The current unset-cpu-requirements check sets requirementsType to any.

I am suggesting to change it to request.

Additional context

Nothing to put here.

michaelbeaumont added a commit to kumahq/kuma that referenced this issue Feb 24, 2023
michaelbeaumont added a commit to kumahq/kuma that referenced this issue Feb 24, 2023
michaelbeaumont added a commit to kumahq/kuma that referenced this issue Feb 28, 2023
michaelbeaumont added a commit to kumahq/kuma that referenced this issue Mar 8, 2023
michaelbeaumont added a commit to kumahq/kuma that referenced this issue Mar 8, 2023
@tspearconquest
Copy link
Contributor

I work around this currently with an annotation. Having this merged would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants