mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 20:36:18 +02:00
fix: ignore not existing nodes on cordoning
Fixes #4557 When running `reset` for a node which was already deleted from Kubernetes, we should ignore failure to cordon and proceed with other actions. Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
This commit is contained in:
parent
f730252579
commit
c6a67b8662
@ -348,6 +348,11 @@ func (h *Client) Cordon(ctx context.Context, name string) error {
|
||||
return retry.ExpectedError(err)
|
||||
}
|
||||
|
||||
if apierrors.IsNotFound(err) {
|
||||
// node not found, should have already been deleted, skip cordoning
|
||||
return nil
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user