-
Notifications
You must be signed in to change notification settings - Fork 13
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
Do not stop Kubernetes services on node removal if annotation is set. #681
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.
Amazing work catching this super subtle issue! Thanks @bschimke95! left some minor comments.
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.
Wonderful job, thanks a lot @bschimke95! LGTM overall, but left some minor comments.
Requires canonical/k8s-snap-api#8 - will update api version tag for the snap afterwards.
By default, all services on a leaving node are stopped. This PR adds logic to skip this step if the
k8sd/v1alpha/lifecycle/skip-stop-services-on-remove
annotation is set.This is required for Cluster API to properly drain nodes. See
Also adds an integration test to validate that this works as expected.