Check ingress rule contains HTTP paths
This commit is contained in:
parent
361e53ffa9
commit
c966bb8eff
1 changed files with 3 additions and 0 deletions
|
@ -598,6 +598,9 @@ func (s k8sStore) ListIngresses() []*extensions.Ingress {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for ri, rule := range ing.Spec.Rules {
|
for ri, rule := range ing.Spec.Rules {
|
||||||
|
if rule.HTTP == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
for pi, path := range rule.HTTP.Paths {
|
for pi, path := range rule.HTTP.Paths {
|
||||||
if path.Path == "" {
|
if path.Path == "" {
|
||||||
ing.Spec.Rules[ri].HTTP.Paths[pi].Path = "/"
|
ing.Spec.Rules[ri].HTTP.Paths[pi].Path = "/"
|
||||||
|
|
Loading…
Reference in a new issue