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

use isSuperset for comparison in isMonitorVPAReady instead of Equals #415

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

Dymanik
Copy link
Contributor

@Dymanik Dymanik commented Sep 23, 2024

isMonitorVPAReady now correctly checks that the VPA has recommendations for at least Tortoise defined containers, extra containers doesn't result in a false not ready.

What this PR does / why we need it:

Changes the comparison in isMonitorVPAReady to behave as expected when there are more containers in the VPA/Pod than defined in the Tortoise object.

Which issue(s) this PR fixes:

Fixes #413

Special notes for your reviewer:

isMonitorVPAReady now correctly checks that the VPA has recommendations for at least Tortoise defined containers, extra containers doesn't result in a false not ready.
@sanposhiho sanposhiho merged commit 059dd51 into mercari:main Sep 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isMonitorVPAReady fails if VPA has recommendations for more containers than defined in a "Tortoise"
2 participants