@@ -53,7 +53,6 @@ import (
53
53
"k8s.io/kubernetes/pkg/util/async"
54
54
utiliptables "k8s.io/kubernetes/pkg/util/iptables"
55
55
utilkernel "k8s.io/kubernetes/pkg/util/kernel"
56
- utilexec "k8s.io/utils/exec"
57
56
netutils "k8s.io/utils/net"
58
57
)
59
58
@@ -115,7 +114,6 @@ func NewDualStackProxier(
115
114
ipvs utilipvs.Interface ,
116
115
ipset utilipset.Interface ,
117
116
sysctl utilsysctl.Interface ,
118
- exec utilexec.Interface ,
119
117
syncPeriod time.Duration ,
120
118
minSyncPeriod time.Duration ,
121
119
excludeCIDRs []string ,
@@ -136,7 +134,7 @@ func NewDualStackProxier(
136
134
) (proxy.Provider , error ) {
137
135
// Create an ipv4 instance of the single-stack proxier
138
136
ipv4Proxier , err := NewProxier (ctx , v1 .IPv4Protocol , ipt [0 ], ipvs , ipset , sysctl ,
139
- exec , syncPeriod , minSyncPeriod , filterCIDRs (false , excludeCIDRs ), strictARP ,
137
+ syncPeriod , minSyncPeriod , filterCIDRs (false , excludeCIDRs ), strictARP ,
140
138
tcpTimeout , tcpFinTimeout , udpTimeout , masqueradeAll , masqueradeBit ,
141
139
localDetectors [v1 .IPv4Protocol ], hostname , nodeIPs [v1 .IPv4Protocol ], recorder ,
142
140
healthzServer , scheduler , nodePortAddresses , initOnly )
@@ -145,7 +143,7 @@ func NewDualStackProxier(
145
143
}
146
144
147
145
ipv6Proxier , err := NewProxier (ctx , v1 .IPv6Protocol , ipt [1 ], ipvs , ipset , sysctl ,
148
- exec , syncPeriod , minSyncPeriod , filterCIDRs (true , excludeCIDRs ), strictARP ,
146
+ syncPeriod , minSyncPeriod , filterCIDRs (true , excludeCIDRs ), strictARP ,
149
147
tcpTimeout , tcpFinTimeout , udpTimeout , masqueradeAll , masqueradeBit ,
150
148
localDetectors [v1 .IPv6Protocol ], hostname , nodeIPs [v1 .IPv6Protocol ], recorder ,
151
149
healthzServer , scheduler , nodePortAddresses , initOnly )
@@ -197,8 +195,7 @@ type Proxier struct {
197
195
minSyncPeriod time.Duration
198
196
// Values are CIDR's to exclude when cleaning up IPVS rules.
199
197
excludeCIDRs []* net.IPNet
200
- // Set to true to set sysctls arp_ignore and arp_announce
201
- strictARP bool
198
+
202
199
iptables utiliptables.Interface
203
200
ipvs utilipvs.Interface
204
201
ipset utilipset.Interface
@@ -208,7 +205,6 @@ type Proxier struct {
208
205
localDetector proxyutil.LocalTrafficDetector
209
206
hostname string
210
207
nodeIP net.IP
211
- recorder events.EventRecorder
212
208
213
209
serviceHealthServer healthcheck.ServiceHealthServer
214
210
healthzServer * healthcheck.ProxyHealthServer
@@ -270,7 +266,6 @@ func NewProxier(
270
266
ipvs utilipvs.Interface ,
271
267
ipset utilipset.Interface ,
272
268
sysctl utilsysctl.Interface ,
273
- exec utilexec.Interface ,
274
269
syncPeriod time.Duration ,
275
270
minSyncPeriod time.Duration ,
276
271
excludeCIDRs []string ,
@@ -388,7 +383,6 @@ func NewProxier(
388
383
localDetector : localDetector ,
389
384
hostname : hostname ,
390
385
nodeIP : nodeIP ,
391
- recorder : recorder ,
392
386
serviceHealthServer : serviceHealthServer ,
393
387
healthzServer : healthzServer ,
394
388
ipvs : ipvs ,
0 commit comments