mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-25 11:21:16 +01:00
I believe `clientv3.SetEndpoints()` calls doesn't make etcd client connect to the endpoints mentioned immediately, it might stil reuse old connection (?). At the same time `MaintenanceClient` which implements `MoveLeader` calls doesn't support explicit endpoint setting (as other similar calls do), so we have to manually force the connection to the leader node we need. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com> (cherry picked from commit 9bf899bdd852befbb4aa5ac4f3ceecb3c33502c8)