Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e8005fac
Commit
e8005fac
authored
Jan 10, 2018
by
tianshapjq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo of errUnsuportedVersion
parent
78c8249c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
manager.go
pkg/kubelet/cm/deviceplugin/manager.go
+1
-1
types.go
pkg/kubelet/cm/deviceplugin/types.go
+2
-2
No files found.
pkg/kubelet/cm/deviceplugin/manager.go
View file @
e8005fac
...
@@ -279,7 +279,7 @@ func (m *ManagerImpl) Register(ctx context.Context, r *pluginapi.RegisterRequest
...
@@ -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
(
errUnsup
p
ortedVersion
,
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
)
}
}
...
...
pkg/kubelet/cm/deviceplugin/types.go
View file @
e8005fac
...
@@ -73,9 +73,9 @@ const (
...
@@ -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
// errUnsup
p
ortedVersion 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"
errUnsup
p
ortedVersion
=
"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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment