@@ -24,12 +24,12 @@ import (
24
24
25
25
v1 "k8s.io/api/core/v1"
26
26
discoveryv1 "k8s.io/api/discovery/v1"
27
- networkingv1beta1 "k8s.io/api/networking/v1beta1 "
27
+ networkingv1 "k8s.io/api/networking/v1 "
28
28
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
29
29
"k8s.io/apimachinery/pkg/util/sets"
30
30
v1informers "k8s.io/client-go/informers/core/v1"
31
31
discoveryv1informers "k8s.io/client-go/informers/discovery/v1"
32
- networkingv1beta1informers "k8s.io/client-go/informers/networking/v1beta1 "
32
+ networkingv1informers "k8s.io/client-go/informers/networking/v1 "
33
33
"k8s.io/client-go/tools/cache"
34
34
"k8s.io/klog/v2"
35
35
)
@@ -404,7 +404,7 @@ type ServiceCIDRConfig struct {
404
404
}
405
405
406
406
// NewServiceCIDRConfig creates a new ServiceCIDRConfig.
407
- func NewServiceCIDRConfig (ctx context.Context , serviceCIDRInformer networkingv1beta1informers .ServiceCIDRInformer , resyncPeriod time.Duration ) * ServiceCIDRConfig {
407
+ func NewServiceCIDRConfig (ctx context.Context , serviceCIDRInformer networkingv1informers .ServiceCIDRInformer , resyncPeriod time.Duration ) * ServiceCIDRConfig {
408
408
result := & ServiceCIDRConfig {
409
409
cidrs : sets .New [string ](),
410
410
logger : klog .FromContext (ctx ),
@@ -448,19 +448,19 @@ func (c *ServiceCIDRConfig) Run(stopCh <-chan struct{}) {
448
448
// handleServiceCIDREvent is a helper function to handle Add, Update and Delete
449
449
// events on ServiceCIDR objects and call downstream event handlers.
450
450
func (c * ServiceCIDRConfig ) handleServiceCIDREvent (oldObj , newObj interface {}) {
451
- var oldServiceCIDR , newServiceCIDR * networkingv1beta1 .ServiceCIDR
451
+ var oldServiceCIDR , newServiceCIDR * networkingv1 .ServiceCIDR
452
452
var ok bool
453
453
454
454
if oldObj != nil {
455
- oldServiceCIDR , ok = oldObj .(* networkingv1beta1 .ServiceCIDR )
455
+ oldServiceCIDR , ok = oldObj .(* networkingv1 .ServiceCIDR )
456
456
if ! ok {
457
457
utilruntime .HandleError (fmt .Errorf ("unexpected object type: %v" , oldObj ))
458
458
return
459
459
}
460
460
}
461
461
462
462
if newObj != nil {
463
- newServiceCIDR , ok = newObj .(* networkingv1beta1 .ServiceCIDR )
463
+ newServiceCIDR , ok = newObj .(* networkingv1 .ServiceCIDR )
464
464
if ! ok {
465
465
utilruntime .HandleError (fmt .Errorf ("unexpected object type: %v" , newObj ))
466
466
return
0 commit comments