From c966bb8eff67f90b6f578145e75bfa2427e7b363 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Tue, 17 Apr 2018 08:32:01 -0300 Subject: [PATCH] Check ingress rule contains HTTP paths --- internal/ingress/controller/store/store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/ingress/controller/store/store.go b/internal/ingress/controller/store/store.go index 5bb978dfdd..a0da776c9f 100644 --- a/internal/ingress/controller/store/store.go +++ b/internal/ingress/controller/store/store.go @@ -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 = "/"