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
c1a40d80
Commit
c1a40d80
authored
Aug 19, 2015
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Node controller did not handle an error
This means if List() fails nodes are considered deleted (which is bad)
parent
a9277912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
nodecontroller.go
pkg/controller/node/nodecontroller.go
+3
-0
No files found.
pkg/controller/node/nodecontroller.go
View file @
c1a40d80
...
@@ -211,6 +211,9 @@ func (nc *NodeController) getCondition(status *api.NodeStatus, conditionType api
...
@@ -211,6 +211,9 @@ func (nc *NodeController) getCondition(status *api.NodeStatus, conditionType api
// not reachable for a long period of time.
// not reachable for a long period of time.
func
(
nc
*
NodeController
)
monitorNodeStatus
()
error
{
func
(
nc
*
NodeController
)
monitorNodeStatus
()
error
{
nodes
,
err
:=
nc
.
kubeClient
.
Nodes
()
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
nodes
,
err
:=
nc
.
kubeClient
.
Nodes
()
.
List
(
labels
.
Everything
(),
fields
.
Everything
())
if
err
!=
nil
{
return
err
}
for
_
,
node
:=
range
nodes
.
Items
{
for
_
,
node
:=
range
nodes
.
Items
{
if
!
nc
.
knownNodeSet
.
Has
(
node
.
Name
)
{
if
!
nc
.
knownNodeSet
.
Has
(
node
.
Name
)
{
glog
.
V
(
1
)
.
Infof
(
"NodeController observed a new Node: %#v"
,
node
)
glog
.
V
(
1
)
.
Infof
(
"NodeController observed a new Node: %#v"
,
node
)
...
...
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