From b15c4473cd95eb98838f46be29186bb711742eab Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Fri, 14 Feb 2020 10:18:07 -0700 Subject: [PATCH] Use default kubelet device-plugins path --- pkg/agent/config/config.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/agent/config/config.go b/pkg/agent/config/config.go index a1082c6e93..8a19c0969b 100644 --- a/pkg/agent/config/config.go +++ b/pkg/agent/config/config.go @@ -27,7 +27,6 @@ import ( "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/util/json" "k8s.io/apimachinery/pkg/util/net" - "k8s.io/kubelet/pkg/apis/deviceplugin/v1beta1" ) func Get(ctx context.Context, agent cmds.Agent) *config.Node { @@ -465,7 +464,6 @@ func get(envInfo *cmds.Agent) (*config.Node, error) { } os.Setenv("NODE_NAME", nodeConfig.AgentConfig.NodeName) - v1beta1.KubeletSocket = filepath.Join(envInfo.DataDir, "kubelet/device-plugins/kubelet.sock") nodeConfig.AgentConfig.ExtraKubeletArgs = envInfo.ExtraKubeletArgs nodeConfig.AgentConfig.ExtraKubeProxyArgs = envInfo.ExtraKubeProxyArgs