claudie
claudie copied to clipboard
Bug: Node deletion in Kuber fails
Current Behaviour
The algorithm used for node deletion depend on the ordering of the control nodepools to be at the beginning. https://github.com/berops/claudie/blob/844eb7afe50aaa8241e27b47a234875a1ee9fb24/services/kuber/server/domain/utils/nodes/delete.go#L253-L277
If the control nodepool is at the end the algorithm returns the wrong node and therefore the whole deletion fails.
Expected Behaviour
Select nodes not based on the order but rather on the type of the nodes, i.e. Master.
Steps To Reproduce
- Build a cluster with a Loadbalancer
- Performer a rolling update by changing the templates
- See the deletion of the control plane nodes fail in kuber.