Migrate kube-proxy to use v1 Event API

This commit is contained in:
Yuan-Junliang
2021-06-13 18:57:52 +08:00
parent 52eea971c5
commit 2e06066bab
14 changed files with 60 additions and 59 deletions

View File

@@ -40,7 +40,7 @@ import (
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/util/wait"
utilfeature "k8s.io/apiserver/pkg/util/feature"
"k8s.io/client-go/tools/record"
"k8s.io/client-go/tools/events"
"k8s.io/klog/v2"
"k8s.io/kubernetes/pkg/apis/core/v1/helper"
"k8s.io/kubernetes/pkg/features"
@@ -468,7 +468,7 @@ type Proxier struct {
clusterCIDR string
hostname string
nodeIP net.IP
recorder record.EventRecorder
recorder events.EventRecorder
serviceHealthServer healthcheck.ServiceHealthServer
healthzServer healthcheck.ProxierHealthUpdater
@@ -526,7 +526,7 @@ func NewProxier(
clusterCIDR string,
hostname string,
nodeIP net.IP,
recorder record.EventRecorder,
recorder events.EventRecorder,
healthzServer healthcheck.ProxierHealthUpdater,
config config.KubeProxyWinkernelConfiguration,
) (*Proxier, error) {
@@ -667,7 +667,7 @@ func NewDualStackProxier(
clusterCIDR string,
hostname string,
nodeIP [2]net.IP,
recorder record.EventRecorder,
recorder events.EventRecorder,
healthzServer healthcheck.ProxierHealthUpdater,
config config.KubeProxyWinkernelConfiguration,
) (proxy.Provider, error) {