Merge pull request #2361 from aledbf/check-path

Check ingress rule contains HTTP paths
This commit is contained in:
k8s-ci-robot 2018-04-20 08:07:00 -07:00 committed by GitHub
commit 7625c05dfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = "/"