Skip to content

Commit

Permalink
Modified 'checking if service exists before retry' logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rajula96reddy authored and Vineet Rajula (vrajula) committed Mar 7, 2020
1 parent 40c1c80 commit 5d8d3f0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/minikube/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"io"
"net/url"
"os"
"sort"
"strings"
"text/template"
"time"
Expand Down Expand Up @@ -283,12 +282,9 @@ func WaitForService(api libmachine.API, namespace string, service string, urlTem
if interval == 0 {
interval = 1
}
services, err := GetServiceURLs(api, namespace, urlTemplate)

err := CheckService(namespace, service)
if err != nil {
return nil, err
}
searchServices := sort.Search(len(services), func(i int) bool { return services[i].Name == service })
if searchServices == len(services) {
return nil, &SVCNotFoundError{err}
}

Expand Down

0 comments on commit 5d8d3f0

Please sign in to comment.