handle joinControPlaneDoneTemp.Execute errors

This commit is contained in:
Ed Bartosh 2019-07-25 15:28:02 +03:00
parent 56d7920e8f
commit d0506f5a50

View File

@ -179,7 +179,8 @@ func NewCmdJoin(out io.Writer, joinOptions *joinOptions) *cobra.Command {
"KubeConfigPath": kubeadmconstants.GetAdminKubeConfigPath(),
"etcdMessage": etcdMessage,
}
joinControPlaneDoneTemp.Execute(data.outputWriter, ctx)
err = joinControPlaneDoneTemp.Execute(data.outputWriter, ctx)
kubeadmutil.CheckErr(err)
} else {
// otherwise, if the node joined as a worker node;