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

feat: cordon features #966

Merged
merged 24 commits into from
Oct 2, 2024
Merged

feat: cordon features #966

merged 24 commits into from
Oct 2, 2024

Conversation

NikolaMilosa
Copy link
Contributor

@NikolaMilosa NikolaMilosa commented Sep 27, 2024

This PR adds the ability to cordon features by adding entries to the new cordoned_features.yaml file. Currently it will exclude from the pool of available nodes all the nodes with the cordoned feature. It will not attempt to remove all healthy nodes (in the subnet) that have said feature, it will just prevent entering of the new nodes with those features.

When removing nodes from the subnet and when they are added back to the available pool, if the removed node contains cordoned features it will not be added to the available pool. It means that some of the nodes containing cordoned features could be removed if the business rules are met.

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner September 27, 2024 08:41
rs/cli/Cargo.toml Show resolved Hide resolved
rs/cli/src/cordoned_feature_fetcher.rs Show resolved Hide resolved
rs/cli/src/cordoned_feature_fetcher.rs Outdated Show resolved Hide resolved
rs/cli/src/cordoned_feature_fetcher.rs Show resolved Hide resolved
rs/cli/src/cordoned_feature_fetcher.rs Outdated Show resolved Hide resolved
rs/cli/src/unit_tests/replace.rs Outdated Show resolved Hide resolved
Copy link
Member

@sasa-tomic sasa-tomic 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!

@NikolaMilosa NikolaMilosa merged commit 565dfd7 into main Oct 2, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-cordone-features branch October 2, 2024 12:02
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.

3 participants