Do not validate ingresses with unknown ingress class in admission webhook endpoint. (#8221)

This commit is contained in:
Elvin Efendi 2022-02-06 15:28:51 -05:00 committed by GitHub
parent d769ceaa5b
commit 04035cc1c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 42 additions and 0 deletions

View file

@ -98,6 +98,9 @@ type Storer interface {
// Run initiates the synchronization of the controllers
Run(stopCh chan struct{})
// GetIngressClass validates given ingress against ingress class configuration and returns the ingress class.
GetIngressClass(ing *networkingv1.Ingress, icConfig *ingressclass.IngressClassConfiguration) (string, error)
}
// EventType type of event associated with an informer