Merge pull request #129455 from neolit123/automated-cherry-pick-of-#129418-origin-release-1.32-1735822604

Automated cherry pick of #129452 kubeadm: fix a bug where the node.skipPhases in UpgradeNodeConfigurat…
This commit is contained in:
Kubernetes Prow Robot 2025-01-08 14:06:38 -08:00 committed by GitHub
commit 117a48fcdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,6 +87,13 @@ func newCmdNode(out io.Writer) *cobra.Command {
return err
}
data, err := nodeRunner.InitData(args)
if err != nil {
return err
}
if _, ok := data.(*nodeData); !ok {
return errors.New("invalid data struct")
}
if err := nodeRunner.Run(args); err != nil {
return err
}