mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #80573 from bart0sh/PR0075-kubeadm-handle-ResetClusterStatusForNode-errors
kubeadm: handle ResetClusterStatusForNode errors
This commit is contained in:
commit
8f1eeacb78
@ -44,7 +44,9 @@ func runUpdateClusterStatus(c workflow.RunData) error {
|
||||
// Reset the ClusterStatus for a given control-plane node.
|
||||
cfg := r.Cfg()
|
||||
if isControlPlane() && cfg != nil {
|
||||
uploadconfig.ResetClusterStatusForNode(cfg.NodeRegistration.Name, r.Client())
|
||||
if err := uploadconfig.ResetClusterStatusForNode(cfg.NodeRegistration.Name, r.Client()); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user