k3s-io / cluster-api-k3s

Cluster API k3s
Apache License 2.0
149 stars 41 forks source link

Fix a bug for etcd removal machine controller [Etcd Proxy] #125

Closed nasusoba closed 6 months ago

nasusoba commented 6 months ago

Bug found The cluster cannot be deleted if the user first scale down a cluster, and then delete it. The deletion process got stuck

Why

Fix Before machine controller remove an etcd member, it will check if the cluster/cp is already under deletion, or if the removed machine is the last node, or if the machine has no noderef. If so, it will skip etcd removal.