-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feature: Add prune flag for nomad server force-leave command #18463
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nvanthao! Thanks for the PR, this is a good start. I've left some comments that'll need to be addressed before this can be merged.
@nvanthao you'll want to rebase this on |
81c9f56
to
3944706
Compare
Many thanks @tgross! I have updated the PR with your latest feedback! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting really close @nvanthao, I think this is the last round of issues.
This feature will help operator to remove a failed/left node from Serf layer immediately without waiting for 24 hours for the node to be reaped * Update CLI with prune flag * Update API /v1/agent/force-leave with prune query string parameter * Update CLI and API doc * Add unit test
4abe42e
to
72b1495
Compare
many thanks @tgross for being patient with me! next PRs will be better! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for sticking with it @nvanthao!
This feature will help operator to remove a failed/left node from Serf layer immediately without waiting for 24 hours for the node to be reaped