Refactor ListIngresses to add filters
This commit is contained in:
parent
ff80dca51e
commit
bae49a4657
7 changed files with 39 additions and 26 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue