Remove support of the networking.k8s.io/v1beta1 APIVersion

This commit is contained in:
Romain
2023-06-20 10:26:05 +02:00
committed by GitHub
parent 5fd6913ee5
commit 4fbe9b81ec
248 changed files with 2614 additions and 3640 deletions
@@ -212,11 +212,9 @@ func (p *Provider) loadConfigurationFromIngresses(ctx context.Context, client Cl
TCP: &dynamic.TCPConfiguration{},
}
serverVersion := client.GetServerVersion()
var ingressClasses []*netv1.IngressClass
if !p.DisableIngressClassLookup && supportsIngressClass(serverVersion) {
if !p.DisableIngressClassLookup {
ics, err := client.GetIngressClasses()
if err != nil {
log.Ctx(ctx).Warn().Err(err).Msg("Failed to list ingress classes")