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
4b79572f
Commit
4b79572f
authored
Sep 29, 2015
by
hzliangmingqiang
Committed by
mqliang
Oct 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eliminate misleading code
parent
608244fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
nodecontroller.go
pkg/controller/node/nodecontroller.go
+4
-1
No files found.
pkg/controller/node/nodecontroller.go
View file @
4b79572f
...
@@ -457,7 +457,10 @@ func (nc *NodeController) tryUpdateNodeStatus(node *api.Node) (time.Duration, ap
...
@@ -457,7 +457,10 @@ func (nc *NodeController) tryUpdateNodeStatus(node *api.Node) (time.Duration, ap
// - if 'LastProbeTime' have gone back in time its probably an error, currently we ignore it,
// - if 'LastProbeTime' have gone back in time its probably an error, currently we ignore it,
// - currently only correct Ready State transition outside of Node Controller is marking it ready by Kubelet, we don't check
// - currently only correct Ready State transition outside of Node Controller is marking it ready by Kubelet, we don't check
// if that's the case, but it does not seem necessary.
// if that's the case, but it does not seem necessary.
savedCondition
:=
nc
.
getCondition
(
&
savedNodeStatus
.
status
,
api
.
NodeReady
)
var
savedCondition
*
api
.
NodeCondition
if
found
{
savedCondition
=
nc
.
getCondition
(
&
savedNodeStatus
.
status
,
api
.
NodeReady
)
}
observedCondition
:=
nc
.
getCondition
(
&
node
.
Status
,
api
.
NodeReady
)
observedCondition
:=
nc
.
getCondition
(
&
node
.
Status
,
api
.
NodeReady
)
if
!
found
{
if
!
found
{
glog
.
Warningf
(
"Missing timestamp for Node %s. Assuming now as a timestamp."
,
node
.
Name
)
glog
.
Warningf
(
"Missing timestamp for Node %s. Assuming now as a timestamp."
,
node
.
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