diff --git a/pkg/kubelet/cm/deviceplugin/manager.go b/pkg/kubelet/cm/deviceplugin/manager.go index 646dd658793..b2c09749ba9 100644 --- a/pkg/kubelet/cm/deviceplugin/manager.go +++ b/pkg/kubelet/cm/deviceplugin/manager.go @@ -279,7 +279,7 @@ func (m *ManagerImpl) Register(ctx context.Context, r *pluginapi.RegisterRequest glog.Infof("Got registration request from device plugin with resource name %q", r.ResourceName) metrics.DevicePluginRegistrationCount.WithLabelValues(r.ResourceName).Inc() if r.Version != pluginapi.Version { - errorString := fmt.Sprintf(errUnsuportedVersion, r.Version, pluginapi.Version) + errorString := fmt.Sprintf(errUnsupportedVersion, r.Version, pluginapi.Version) glog.Infof("Bad registration request from device plugin with resource name %q: %v", r.ResourceName, errorString) return &pluginapi.Empty{}, fmt.Errorf(errorString) } diff --git a/pkg/kubelet/cm/deviceplugin/types.go b/pkg/kubelet/cm/deviceplugin/types.go index 3c6b30206f1..78cf4e41a4d 100644 --- a/pkg/kubelet/cm/deviceplugin/types.go +++ b/pkg/kubelet/cm/deviceplugin/types.go @@ -73,9 +73,9 @@ const ( // errFailedToDialDevicePlugin is the error raised when the device plugin could not be // reached on the registered socket errFailedToDialDevicePlugin = "failed to dial device plugin:" - // errUnsuportedVersion is the error raised when the device plugin uses an API version not + // errUnsupportedVersion is the error raised when the device plugin uses an API version not // supported by the Kubelet registry - errUnsuportedVersion = "requested API version %q is not supported by kubelet. Supported version is %q" + errUnsupportedVersion = "requested API version %q is not supported by kubelet. Supported version is %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"