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 empty node selector strategy #450

Merged
merged 4 commits into from
Apr 6, 2021
Merged

Fix empty node selector strategy #450

merged 4 commits into from
Apr 6, 2021

Conversation

lgfa29
Copy link
Contributor

@lgfa29 lgfa29 commented Apr 5, 2021

The empty node selector strategy had a wrong check that ended causing the opposite of the expected result. It would also fail to scale-in if system jobs were deployed.

This PR fixes the check and also ignores system job allocs when using the empty strategy. It also adds some basic tests using test-fixtures retrieved from a live Nomad cluster.

@lgfa29 lgfa29 force-pushed the fix-empty-node-selector branch from 8d54292 to 4f4f728 Compare April 5, 2021 23:57
@lgfa29 lgfa29 added this to the 0.3.2 milestone Apr 5, 2021
Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I have not tested it E2E, but everything looks great.

@lgfa29 lgfa29 merged commit b97bbdc into main Apr 6, 2021
@lgfa29 lgfa29 deleted the fix-empty-node-selector branch April 6, 2021 16:39
lgfa29 added a commit that referenced this pull request Apr 6, 2021
lgfa29 added a commit that referenced this pull request Apr 6, 2021
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.

2 participants