Skip to content

Commit

Permalink
Ensuring EndpointSlices are not used for Windows kube-proxy implement…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
robscott committed Dec 6, 2019
1 parent 27fac0b commit dfa04bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kube-proxy/app/server.go
Expand Up @@ -678,7 +678,7 @@ func (s *ProxyServer) Run() error {
serviceConfig.RegisterEventHandler(s.Proxier)
go serviceConfig.Run(wait.NeverStop)

if utilfeature.DefaultFeatureGate.Enabled(features.EndpointSlice) {
if s.UseEndpointSlices {
endpointSliceConfig := config.NewEndpointSliceConfig(informerFactory.Discovery().V1beta1().EndpointSlices(), s.ConfigSyncPeriod)
endpointSliceConfig.RegisterEventHandler(s.Proxier)
go endpointSliceConfig.Run(wait.NeverStop)
Expand Down
1 change: 1 addition & 0 deletions cmd/kube-proxy/app/server_others.go
Expand Up @@ -268,6 +268,7 @@ func newProxyServer(
OOMScoreAdj: config.OOMScoreAdj,
ConfigSyncPeriod: config.ConfigSyncPeriod.Duration,
HealthzServer: healthzServer,
UseEndpointSlices: utilfeature.DefaultFeatureGate.Enabled(features.EndpointSlice),
}, nil
}

Expand Down
1 change: 1 addition & 0 deletions cmd/kube-proxy/app/server_windows.go
Expand Up @@ -145,6 +145,7 @@ func newProxyServer(config *proxyconfigapi.KubeProxyConfiguration, cleanupAndExi
OOMScoreAdj: config.OOMScoreAdj,
ConfigSyncPeriod: config.ConfigSyncPeriod.Duration,
HealthzServer: healthzServer,
UseEndpointSlices: false,
}, nil
}

Expand Down

0 comments on commit dfa04bf

Please sign in to comment.