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
83fc0b78
Commit
83fc0b78
authored
Sep 14, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13923 from wojtek-t/fix_rv_0_errors
Auto commit by PR queue bot
parents
e25ae7fd
5da52558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
kubelet.go
pkg/kubelet/kubelet.go
+1
-5
No files found.
pkg/kubelet/kubelet.go
View file @
83fc0b78
...
@@ -208,11 +208,7 @@ func NewMainKubelet(
...
@@ -208,11 +208,7 @@ func NewMainKubelet(
fieldSelector
:=
fields
.
Set
{
client
.
ObjectNameField
:
nodeName
}
.
AsSelector
()
fieldSelector
:=
fields
.
Set
{
client
.
ObjectNameField
:
nodeName
}
.
AsSelector
()
listWatch
:=
&
cache
.
ListWatch
{
listWatch
:=
&
cache
.
ListWatch
{
ListFunc
:
func
()
(
runtime
.
Object
,
error
)
{
ListFunc
:
func
()
(
runtime
.
Object
,
error
)
{
obj
,
err
:=
kubeClient
.
Nodes
()
.
Get
(
nodeName
)
return
kubeClient
.
Nodes
()
.
List
(
labels
.
Everything
(),
fieldSelector
)
if
err
!=
nil
{
return
nil
,
err
}
return
&
api
.
NodeList
{
Items
:
[]
api
.
Node
{
*
obj
}},
nil
},
},
WatchFunc
:
func
(
resourceVersion
string
)
(
watch
.
Interface
,
error
)
{
WatchFunc
:
func
(
resourceVersion
string
)
(
watch
.
Interface
,
error
)
{
return
kubeClient
.
Nodes
()
.
Watch
(
labels
.
Everything
(),
fieldSelector
,
resourceVersion
)
return
kubeClient
.
Nodes
()
.
Watch
(
labels
.
Everything
(),
fieldSelector
,
resourceVersion
)
...
...
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