From cbab51c15d0150c881745ff5132c01566d2190fe Mon Sep 17 00:00:00 2001 From: tianshapjq Date: Wed, 10 Jan 2018 16:11:42 +0800 Subject: [PATCH] remove useless variables in deviceplugin/types.go --- pkg/kubelet/cm/devicemanager/types.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pkg/kubelet/cm/devicemanager/types.go b/pkg/kubelet/cm/devicemanager/types.go index ab9fdbf12e..3d3017703c 100644 --- a/pkg/kubelet/cm/devicemanager/types.go +++ b/pkg/kubelet/cm/devicemanager/types.go @@ -79,22 +79,14 @@ const ( errFailedToDialDevicePlugin = "failed to dial device plugin:" // errUnsupportedVersion is the error raised when the device plugin uses an API version not // supported by the Kubelet registry - errUnsupportedVersion = "requested API version %q is not supported by kubelet. Supported versions are %q" - // errDevicePluginAlreadyExists is the error raised when a device plugin with the - // same Resource Name tries to register itself - errDevicePluginAlreadyExists = "another device plugin already registered this Resource Name" + errUnsupportedVersion = "requested API version %q is not supported by kubelet. Supported version is %q" // errInvalidResourceName is the error raised when a device plugin is registering // itself with an invalid ResourceName errInvalidResourceName = "the ResourceName %q is invalid" - // errEmptyResourceName is the error raised when the resource name field is empty - errEmptyResourceName = "invalid Empty ResourceName" // errEndpointStopped indicates that the endpoint has been stopped errEndpointStopped = "endpoint %v has been stopped" - // errBadSocket is the error raised when the registry socket path is not absolute errBadSocket = "bad socketPath, must be an absolute path:" - // errRemoveSocket is the error raised when the registry could not remove the existing socket - errRemoveSocket = "failed to remove socket while starting device plugin registry, with error" // errListenSocket is the error raised when the registry could not listen on the socket errListenSocket = "failed to listen to socket while starting device plugin registry, with error" // errListAndWatch is the error raised when ListAndWatch ended unsuccessfully