Skip to content

Commit

Permalink
Check ingress rule contains HTTP paths
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Apr 17, 2018
1 parent 361e53f commit c966bb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/ingress/controller/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ func (s k8sStore) ListIngresses() []*extensions.Ingress {
continue
}
for ri, rule := range ing.Spec.Rules {
if rule.HTTP == nil {
continue
}
for pi, path := range rule.HTTP.Paths {
if path.Path == "" {
ing.Spec.Rules[ri].HTTP.Paths[pi].Path = "/"
Expand Down

0 comments on commit c966bb8

Please sign in to comment.