Continue to ingore non-gce ingress in lister.

This commit is contained in:
bprashanth 2016-08-08 10:27:36 -07:00
parent b28e1607c6
commit 1a890fe7db
2 changed files with 15 additions and 6 deletions

View file

@ -188,7 +188,10 @@ type StoreToIngressLister struct {
// List lists all Ingress' in the store.
func (s *StoreToIngressLister) List() (ing extensions.IngressList, err error) {
for _, m := range s.Store.List() {
ing.Items = append(ing.Items, *(m.(*extensions.Ingress)))
newIng := m.(*extensions.Ingress)
if isGCEIngress(newIng) {
ing.Items = append(ing.Items, *newIng)
}
}
return ing, nil
}