Skip to content

Commit f6bc0ea

Browse files
authored
Merge pull request kubernetes#80891 from bart0sh/PR0076-kubeadm-handle-joinControPlaneDoneTemp.Execute-errors
handle joinControPlaneDoneTemp.Execute errors
2 parents 6278b90 + d0506f5 commit f6bc0ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/kubeadm/app/cmd/join.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ func NewCmdJoin(out io.Writer, joinOptions *joinOptions) *cobra.Command {
179179
"KubeConfigPath": kubeadmconstants.GetAdminKubeConfigPath(),
180180
"etcdMessage": etcdMessage,
181181
}
182-
joinControPlaneDoneTemp.Execute(data.outputWriter, ctx)
182+
err = joinControPlaneDoneTemp.Execute(data.outputWriter, ctx)
183+
kubeadmutil.CheckErr(err)
183184

184185
} else {
185186
// otherwise, if the node joined as a worker node;

0 commit comments

Comments
 (0)