Skip to content

Commit

Permalink
fix(kubeadm): fix missing addon phase of kubeadm after v1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liubog2008 committed Mar 28, 2019
1 parent b189947 commit 30fd909
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ func (k *Bootstrapper) RestartCluster(k8s config.KubernetesConfig) error {
fmt.Sprintf("sudo kubeadm %s phase etcd local --config %s", phase, constants.KubeadmConfigFile),
}

if version.GTE(semver.MustParse("1.13.0")) {
cmds = append(cmds, fmt.Sprintf("sudo kubeadm init phase addons all --config %s", constants.KubeadmConfigFile))
}

// Run commands one at a time so that it is easier to root cause failures.
for _, cmd := range cmds {
if err := k.c.Run(cmd); err != nil {
Expand Down

0 comments on commit 30fd909

Please sign in to comment.