Refactor ListIngresses to add filters

This commit is contained in:
Manuel Alejandro de Brito Fontes 2019-05-18 06:08:05 -04:00
parent ff80dca51e
commit bae49a4657
No known key found for this signature in database
GPG key ID: 786136016A8BA02A
7 changed files with 39 additions and 26 deletions

View file

@ -1029,7 +1029,7 @@ func TestListIngresses(t *testing.T) {
}
s.listers.IngressWithAnnotation.Add(ingressWithNginxClass)
ingresses := s.ListIngresses()
ingresses := s.ListIngresses(nil)
if s := len(ingresses); s != 3 {
t.Errorf("Expected 3 Ingresses but got %v", s)