From 7bdc05e3e41f0ad2232cc7178504fa4e4e93026d Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Wed, 9 Jan 2019 09:33:46 -0700 Subject: [PATCH] Make kubelet.sock path changable --- pkg/kubelet/apis/deviceplugin/v1beta1/constants.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkg/kubelet/apis/deviceplugin/v1beta1/constants.go b/pkg/kubelet/apis/deviceplugin/v1beta1/constants.go index 13c9bdd101..609c5019dd 100644 --- a/pkg/kubelet/apis/deviceplugin/v1beta1/constants.go +++ b/pkg/kubelet/apis/deviceplugin/v1beta1/constants.go @@ -29,9 +29,12 @@ const ( // Note: Placeholder until we find a "standard path" DevicePluginPath = "/var/lib/kubelet/device-plugins/" // KubeletSocket is the path of the Kubelet registry socket - KubeletSocket = DevicePluginPath + "kubelet.sock" + //KubeletSocket = DevicePluginPath + "kubelet.sock" // Timeout duration in secs for PreStartContainer RPC KubeletPreStartContainerRPCTimeoutInSecs = 30 ) -var SupportedVersions = [...]string{"v1beta1"} +var ( + KubeletSocket = DevicePluginPath + "kubelet.sock" + SupportedVersions = [...]string{"v1beta1"} +)