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

fix(control-plane): sidecar CPU limit incorrectly validated against CPU request #3209

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

DanStough
Copy link
Contributor

@DanStough DanStough commented Nov 13, 2023

Fixes #3205

Changes proposed in this PR:

  • Fixes a bug with the control-plane CLI validation where the consul-dataplane sidecar CPU request is compared against the memory limit instead of the CPU limit.

How I've tested this PR:

  • Unit tests + 👁️

The test only validated failure cases and I didn't think it was the effort to create a new suite that test successful cross-validation of memory and CPU allocations.

How I expect reviewers to test this PR: 👀

Checklist:

@DanStough DanStough force-pushed the dans/fix-CPU-request-validation branch from b35f844 to 78db847 Compare November 13, 2023 22:39
Copy link
Contributor

@david-yu david-yu left a comment

Choose a reason for hiding this comment

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

Awesome thank you!

@DanStough DanStough merged commit d3d5b73 into main Nov 14, 2023
48 checks passed
@DanStough DanStough deleted the dans/fix-CPU-request-validation branch November 14, 2023 15:25
jjti pushed a commit that referenced this pull request Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

request must be <= limit error because of comparison between CPU and Memory requests.
3 participants