Closed Despire closed 3 weeks ago
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.
Select nodes not based on the order but rather on the type of the nodes, i.e. Master.
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