Skip to content

Commit

Permalink
Merge pull request #1423 from aledbf/cast-error
Browse files Browse the repository at this point in the history
Fix cast error
  • Loading branch information
aledbf authored Sep 26, 2017
2 parents 47ea2d7 + 0498f2a commit 7a7d3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/pkg/ingress/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func (ic *GenericController) syncIngress(key interface{}) error {
// Sort ingress rules using the ResourceVersion field
ings := ic.listers.Ingress.List()
sort.SliceStable(ings, func(i, j int) bool {
ir := ings[i].(*ingress.SSLCert).ResourceVersion
jr := ings[j].(*ingress.SSLCert).ResourceVersion
ir := ings[i].(*extensions.Ingress).ResourceVersion
jr := ings[j].(*extensions.Ingress).ResourceVersion
return ir < jr
})

Expand Down

0 comments on commit 7a7d3af

Please sign in to comment.