Skip to content

Commit

Permalink
kubeadm: move preflight kubelet check
Browse files Browse the repository at this point in the history
  • Loading branch information
dmmcquay committed May 2, 2017
1 parent 8f6df26 commit 6b2df1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/kubeadm/app/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight,
if err := preflight.RunInitMasterChecks(cfg); err != nil {
return nil, err
}

// Try to start the kubelet service in case it's inactive
preflight.TryStartKubelet()
} else {
fmt.Println("[preflight] Skipping pre-flight checks")
}

// Try to start the kubelet service in case it's inactive
preflight.TryStartKubelet()

return &Init{cfg: cfg, skipTokenPrint: skipTokenPrint}, nil
}

Expand Down
6 changes: 3 additions & 3 deletions cmd/kubeadm/app/cmd/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, s
if err := preflight.RunJoinNodeChecks(cfg); err != nil {
return nil, err
}

// Try to start the kubelet service in case it's inactive
preflight.TryStartKubelet()
} else {
fmt.Println("[preflight] Skipping pre-flight checks")
}

// Try to start the kubelet service in case it's inactive
preflight.TryStartKubelet()

return &Join{cfg: cfg}, nil
}

Expand Down

0 comments on commit 6b2df1c

Please sign in to comment.