@@ -42,7 +42,6 @@ import (
42
42
"k8s.io/apimachinery/pkg/util/sets"
43
43
"k8s.io/apimachinery/pkg/util/wait"
44
44
"k8s.io/client-go/tools/events"
45
- utilsysctl "k8s.io/component-helpers/node/util/sysctl"
46
45
"k8s.io/klog/v2"
47
46
"k8s.io/kubernetes/pkg/proxy"
48
47
"k8s.io/kubernetes/pkg/proxy/conntrack"
@@ -105,7 +104,6 @@ const (
105
104
// NewDualStackProxier creates a MetaProxier instance, with IPv4 and IPv6 proxies.
106
105
func NewDualStackProxier (
107
106
ctx context.Context ,
108
- sysctl utilsysctl.Interface ,
109
107
syncPeriod time.Duration ,
110
108
minSyncPeriod time.Duration ,
111
109
masqueradeAll bool ,
@@ -119,15 +117,15 @@ func NewDualStackProxier(
119
117
initOnly bool ,
120
118
) (proxy.Provider , error ) {
121
119
// Create an ipv4 instance of the single-stack proxier
122
- ipv4Proxier , err := NewProxier (ctx , v1 .IPv4Protocol , sysctl ,
120
+ ipv4Proxier , err := NewProxier (ctx , v1 .IPv4Protocol ,
123
121
syncPeriod , minSyncPeriod , masqueradeAll , masqueradeBit ,
124
122
localDetectors [v1 .IPv4Protocol ], hostname , nodeIPs [v1 .IPv4Protocol ],
125
123
recorder , healthzServer , nodePortAddresses , initOnly )
126
124
if err != nil {
127
125
return nil , fmt .Errorf ("unable to create ipv4 proxier: %v" , err )
128
126
}
129
127
130
- ipv6Proxier , err := NewProxier (ctx , v1 .IPv6Protocol , sysctl ,
128
+ ipv6Proxier , err := NewProxier (ctx , v1 .IPv6Protocol ,
131
129
syncPeriod , minSyncPeriod , masqueradeAll , masqueradeBit ,
132
130
localDetectors [v1 .IPv6Protocol ], hostname , nodeIPs [v1 .IPv6Protocol ],
133
131
recorder , healthzServer , nodePortAddresses , initOnly )
@@ -203,7 +201,6 @@ var _ proxy.Provider = &Proxier{}
203
201
// call fails.
204
202
func NewProxier (ctx context.Context ,
205
203
ipFamily v1.IPFamily ,
206
- sysctl utilsysctl.Interface ,
207
204
syncPeriod time.Duration ,
208
205
minSyncPeriod time.Duration ,
209
206
masqueradeAll bool ,
0 commit comments