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

disable k8s node cleanup and let CAPI handle it #32

Merged
merged 3 commits into from
Aug 2, 2024

Conversation

bschimke95
Copy link
Contributor

This pull request addresses an issue where nodes are not properly drained in Cluster API before upgrades. The current CK8s remove hook removes the node from the Kubernetes cluster, which conflicts with the CAPI core controllers responsible for node removal within the CAPI context. As a result, when our controllers remove the node, the core controller loses track and only removes the resource reference in the management cluster.

This PR disables the Kubernetes node removal in the k8s-snap.

Requires canonical/k8s-snap#577 to be merged. See there for more details.

@bschimke95 bschimke95 force-pushed the KU-1176/make-k8s-node-removal-customaziable branch from 75f4d68 to 8d91c63 Compare August 1, 2024 08:12
pkg/ck8s/config_init.go Outdated Show resolved Hide resolved
@bschimke95 bschimke95 merged commit fb71afe into main Aug 2, 2024
3 of 7 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.

2 participants