mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #58053 from tianshapjq/nit-errUnsupportedVersion
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. typo of errUnsuportedVersion **What this PR does / why we need it**: typo of errUnsuportedVersion in pkg/kubelet/cm/deviceplugin/types.go **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```NONE
This commit is contained in:
commit
62616d79ad
@ -287,7 +287,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