Merge pull request #2361 from aledbf/check-path
Check ingress rule contains HTTP paths
This commit is contained in:
commit
7625c05dfb
1 changed files with 3 additions and 0 deletions
|
@ -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 = "/"
|
||||
|
|
Loading…
Reference in a new issue