Do not validate ingresses with unknown ingress class in admission webhook endpoint. (#8221)
This commit is contained in:
parent
d769ceaa5b
commit
04035cc1c2
4 changed files with 42 additions and 0 deletions
|
|
@ -63,6 +63,10 @@ type fakeIngressStore struct {
|
|||
configuration ngx_config.Configuration
|
||||
}
|
||||
|
||||
func (fakeIngressStore) GetIngressClass(ing *networking.Ingress, icConfig *ingressclass.IngressClassConfiguration) (string, error) {
|
||||
return "nginx", nil
|
||||
}
|
||||
|
||||
func (fis fakeIngressStore) GetBackendConfiguration() ngx_config.Configuration {
|
||||
return fis.configuration
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue