From b370cc1bc614b9664ea564b822b7a8db9a55671a Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 20 Oct 2017 14:20:19 -0400 Subject: [PATCH] Fix kube-proxy panic on cleanup Set the execer properly when we initialize ProxyServer or we will end up with a panic. --- cmd/kube-proxy/app/server_others.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/kube-proxy/app/server_others.go b/cmd/kube-proxy/app/server_others.go index 479d2adb4ca..f5fb2098cf6 100644 --- a/cmd/kube-proxy/app/server_others.go +++ b/cmd/kube-proxy/app/server_others.go @@ -82,7 +82,12 @@ func NewProxyServer(config *componentconfig.KubeProxyConfiguration, cleanupAndEx // We omit creation of pretty much everything if we run in cleanup mode if cleanupAndExit { - return &ProxyServer{IptInterface: iptInterface, IpvsInterface: ipvsInterface, CleanupAndExit: cleanupAndExit}, nil + return &ProxyServer{ + execer: execer, + IptInterface: iptInterface, + IpvsInterface: ipvsInterface, + CleanupAndExit: cleanupAndExit, + }, nil } client, eventClient, err := createClients(config.ClientConnection, master)