提交 101f2da0 编写于 作者: S Sharif Elgamal

revert changes to node_add

上级 d0753347
......@@ -63,8 +63,7 @@ var nodeAddCmd = &cobra.Command{
}
}
err := node.Add(cc, n)
if err != nil {
if err := node.Add(cc, n); err != nil {
_, err := maybeDeleteAndRetry(*cc, n, nil, err)
if err != nil {
exit.WithError("failed to add node", err)
......@@ -72,6 +71,7 @@ var nodeAddCmd = &cobra.Command{
}
// Add CNI config if it's not already there
// We need to run kubeadm.init here as well
if err := config.MultiNodeCNIConfig(cc); err != nil {
exit.WithError("failed to save config", err)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册