Migrate ingress.class annotation to new IngressClassName field
This commit is contained in:
parent
461aa93d13
commit
04ef782c57
7 changed files with 46 additions and 27 deletions
|
|
@ -54,10 +54,10 @@ func TestIsValidClass(t *testing.T) {
|
|||
},
|
||||
}
|
||||
|
||||
data := map[string]string{}
|
||||
ing.SetAnnotations(data)
|
||||
for _, test := range tests {
|
||||
ing.Annotations[IngressKey] = test.ingress
|
||||
if test.ingress != "" {
|
||||
ing.Spec.IngressClassName = &test.ingress
|
||||
}
|
||||
|
||||
IngressClass = test.controller
|
||||
DefaultClass = test.defClass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue