Skip to content

Commit

Permalink
Remove config for Endpoints API when feature gate EndpointSlice is en…
Browse files Browse the repository at this point in the history
…abled (#4752)

For #4681

Signed-off-by: Hongliang Liu <[email protected]>
  • Loading branch information
luolanzone authored Mar 24, 2023
1 parent 85bc745 commit 28cb924
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/agent/proxy/proxier.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,6 @@ func NewProxier(
}

p := &proxier{
endpointsConfig: config.NewEndpointsConfig(informerFactory.Core().V1().Endpoints(), resyncPeriod),
serviceConfig: config.NewServiceConfig(informerFactory.Core().V1().Services(), resyncPeriod),
endpointsChanges: newEndpointsChangesTracker(hostname, endpointSliceEnabled, isIPv6),
serviceChanges: newServiceChangesTracker(recorder, ipFamily, skipServices),
Expand All @@ -966,7 +965,6 @@ func NewProxier(
}

p.serviceConfig.RegisterEventHandler(p)
p.endpointsConfig.RegisterEventHandler(p)
p.runner = k8sproxy.NewBoundedFrequencyRunner(componentName, p.syncProxyRules, time.Second, 30*time.Second, 2)
if endpointSliceEnabled {
p.endpointSliceConfig = config.NewEndpointSliceConfig(informerFactory.Discovery().V1().EndpointSlices(), resyncPeriod)
Expand Down

0 comments on commit 28cb924

Please sign in to comment.