Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--wait, wait for more components #7375

Merged
merged 20 commits into from
Apr 4, 2020
Prev Previous commit
Next Next commit
reuse timeout
  • Loading branch information
medyagh committed Apr 3, 2020
commit fa9d47ae18e46ea11b191ebce262966f3a7567de
6 changes: 1 addition & 5 deletions pkg/minikube/bootstrapper/bsutil/kverify/default_sa.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ func WaitForDefaultSA(cs *kubernetes.Clientset, timeout time.Duration) error {
glog.Info("waiting for default service account to be created ...")
start := time.Now()
saReady := func() error {
if time.Since(start) > timeout {
glog.Error("exceeded max time to wait to verify cluster during waiting for default service account. will skip waiting.")
return nil
}
// equivalent to manual check of 'kubectl --context profile get serviceaccount default'
sas, err := cs.CoreV1().ServiceAccounts("default").List(meta.ListOptions{})
if err != nil {
Expand All @@ -51,7 +47,7 @@ func WaitForDefaultSA(cs *kubernetes.Clientset, timeout time.Duration) error {
}
return fmt.Errorf("couldn't find default service account")
}
if err := retry.Expo(saReady, 500*time.Millisecond, 120*time.Second); err != nil {
if err := retry.Expo(saReady, 500*time.Millisecond, timeout); err != nil {
return errors.Wrapf(err, "waited %s for SA", time.Since(start))
}

Expand Down