mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
typo of errUnsuportedVersion
This commit is contained in:
parent
78c8249cb3
commit
e8005face7
@ -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)
|
glog.Infof("Got registration request from device plugin with resource name %q", r.ResourceName)
|
||||||
metrics.DevicePluginRegistrationCount.WithLabelValues(r.ResourceName).Inc()
|
metrics.DevicePluginRegistrationCount.WithLabelValues(r.ResourceName).Inc()
|
||||||
if r.Version != pluginapi.Version {
|
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)
|
glog.Infof("Bad registration request from device plugin with resource name %q: %v", r.ResourceName, errorString)
|
||||||
return &pluginapi.Empty{}, fmt.Errorf(errorString)
|
return &pluginapi.Empty{}, fmt.Errorf(errorString)
|
||||||
}
|
}
|
||||||
|
@ -73,9 +73,9 @@ const (
|
|||||||
// errFailedToDialDevicePlugin is the error raised when the device plugin could not be
|
// errFailedToDialDevicePlugin is the error raised when the device plugin could not be
|
||||||
// reached on the registered socket
|
// reached on the registered socket
|
||||||
errFailedToDialDevicePlugin = "failed to dial device plugin:"
|
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
|
// 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
|
// errDevicePluginAlreadyExists is the error raised when a device plugin with the
|
||||||
// same Resource Name tries to register itself
|
// same Resource Name tries to register itself
|
||||||
errDevicePluginAlreadyExists = "another device plugin already registered this Resource Name"
|
errDevicePluginAlreadyExists = "another device plugin already registered this Resource Name"
|
||||||
|
Loading…
Reference in New Issue
Block a user