Skip to content

Commit

Permalink
Merge pull request #2361 from aledbf/check-path
Browse files Browse the repository at this point in the history
Check ingress rule contains HTTP paths
  • Loading branch information
k8s-ci-robot authored Apr 20, 2018
2 parents c7b2d73 + c966bb8 commit 7625c05
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 @@ -618,6 +618,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 7625c05

Please sign in to comment.