Skip to content

Commit

Permalink
Some more ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandraPrakash committed Nov 22, 2018
1 parent cc3e9f3 commit 2d1b03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kube/wrappers/ingress-wrapper.go
Expand Up @@ -65,7 +65,7 @@ func (iw *IngressWrapper) getIngressPort() string {
rule := iw.Ingress.Spec.Rules[0]
if rule.HTTP != nil {
if rule.HTTP.Paths != nil && len(rule.HTTP.Paths) > 0 {
if reflect.TypeOf(rule.HTTP.Paths[0].Backend.ServicePort) == "string" {
if reflect.TypeOf(rule.HTTP.Paths[0].Backend.ServicePort).Kind() == request.String {
return "80"
} else {
return rule.HTTP.Paths[0].Backend.ServicePort.StrVal
Expand Down Expand Up @@ -119,7 +119,7 @@ func (iw *IngressWrapper) GetURL() string {
// Append port + ingressSubPath
ingressSubPathWithPort := iw.getIngressSubPathWithPort()
u.Path = u.Path + ":" + strings.Split(ingressSubPathWithPort, "/")[0]
u.Path = path.Join(u.Path, strings.Join(strings.Split(iw, getIngressSubPathWithPort(), "/")[1:], "/"))
u.Path = path.Join(u.Path, strings.Join(strings.Split(iw.getIngressSubPathWithPort(), "/")[1:], "/"))

// Find pod by backtracking ingress -> service -> pod
healthEndpoint, exists := iw.tryGetHealthEndpointFromIngress()
Expand Down

0 comments on commit 2d1b03c

Please sign in to comment.