Fix ingress.class annotation
This commit is contained in:
parent
9e189b4eb9
commit
f7e910e960
4 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue