Fix ingress.class annotation

This commit is contained in:
Manuel de Brito Fontes 2017-11-28 19:27:38 -03:00
parent 9e189b4eb9
commit f7e910e960
4 changed files with 7 additions and 8 deletions

View file

@ -35,7 +35,7 @@ var (
// IngressClass sets the runtime ingress class to use
// An empty string means accept all ingresses without
// annotation and the ones configured with class nginx
IngressClass = ""
IngressClass = "nginx"
)
// IsValid returns true if the given Ingress either doesn't specify

View file

@ -44,7 +44,6 @@ func TestIsValidClass(t *testing.T) {
{"nginx", "nginx", "nginx", true},
{"custom", "custom", "nginx", true},
{"", "killer", "nginx", false},
{"", "", "nginx", true},
{"custom", "nginx", "nginx", false},
}