Merge pull request #80891 from bart0sh/PR0076-kubeadm-handle-joinControPlaneDoneTemp.Execute-errors

handle joinControPlaneDoneTemp.Execute errors
This commit is contained in:
Kubernetes Prow Robot 2019-08-02 08:44:05 -07:00 committed by GitHub
commit f6bc0ea03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;