Merge pull request #80573 from bart0sh/PR0075-kubeadm-handle-ResetClusterStatusForNode-errors

kubeadm: handle ResetClusterStatusForNode errors
This commit is contained in:
Kubernetes Prow Robot 2019-07-26 09:56:25 -07:00 committed by GitHub
commit 8f1eeacb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,9 @@ func runUpdateClusterStatus(c workflow.RunData) error {
// Reset the ClusterStatus for a given control-plane node. // Reset the ClusterStatus for a given control-plane node.
cfg := r.Cfg() cfg := r.Cfg()
if isControlPlane() && cfg != nil { 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 return nil