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

Add Controls C-0268, C-0269, C-0270, C-0271 to allow for more fine granular testing of cpu/mem limits/requests being set #63

Merged

Conversation

poehlerflorian
Copy link
Contributor

@poehlerflorian poehlerflorian commented Mar 10, 2025

Currently it is only possible to check for cpu/memory requests and limits. Since it is not recommended to set cpu limits when cpu requests are correctly set (see this post e.g.) the controls C-0004 and C-0050 are being split up into C-0268 to C-0271 like it has already been done in the regolibrary (kubescape/regolibrary#594).

Also the control C-0050 contained a bug where cpu requests were compared to the configured max/min cpu limit.

@poehlerflorian poehlerflorian force-pushed the feature/add-controls-c-0268--c-0271 branch from 25658ee to 3a84f56 Compare March 10, 2025 11:46
@slashben slashben self-requested a review March 10, 2025 12:11
@slashben slashben self-assigned this Mar 10, 2025
@slashben slashben added the enhancement New feature or request label Mar 10, 2025
@slashben
Copy link
Collaborator

Thanks @poehlerflorian for the contribution, I will look into it a bit later!

@poehlerflorian poehlerflorian force-pushed the feature/add-controls-c-0268--c-0271 branch from 3a84f56 to 8a3a894 Compare March 10, 2025 13:20
@slashben slashben merged commit 924f0fb into kubescape:main Mar 11, 2025
5 checks passed
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
Status: Needs Reviewer
Development

Successfully merging this pull request may close these issues.

2 participants