Skip to content

Commit

Permalink
multinode cluster: fix waits and joins
Browse files Browse the repository at this point in the history
  • Loading branch information
prezha committed Mar 10, 2021
1 parent 9b64ebf commit 9ba6c7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, time
}

if cfg.VerifyComponents[kverify.NodeReadyKey] {
name := config.MachineName(cfg, n)
name := bsutil.KubeNodeName(cfg, n)
if err := kverify.WaitNodeCondition(client, name, core.NodeReady, timeout); err != nil {
return errors.Wrap(err, "waiting for node to be ready")
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/node/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func Start(starter Starter, apiServer bool) (*kubeconfig.Settings, error) {
return nil, errors.Wrap(err, "cni apply")
}
}
klog.Infof("Will wait %s for node %s", viper.GetDuration(waitTimeout), starter.Node)
klog.Infof("Will wait %s for node %+v", viper.GetDuration(waitTimeout), starter.Node)
if err := bs.WaitForNode(*starter.Cfg, *starter.Node, viper.GetDuration(waitTimeout)); err != nil {
return nil, errors.Wrapf(err, "wait %s for node", viper.GetDuration(waitTimeout))
}
Expand Down

0 comments on commit 9ba6c7c

Please sign in to comment.