mirror of https://github.com/k3s-io/k3s
nodecontroller: remove unused ready event recording
It's not nodecontroller setting the node to Ready so it's impossible to reach this condition. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>pull/6/head
parent
d3778f5f5a
commit
21c57a5633
|
@ -612,9 +612,6 @@ func (nc *NodeController) monitorNodeStatus() error {
|
|||
}
|
||||
|
||||
// Report node events.
|
||||
if readyCondition.Status == api.ConditionTrue && lastReadyCondition.Status != api.ConditionTrue {
|
||||
nc.recordNodeEvent(node, "ready")
|
||||
}
|
||||
if readyCondition.Status == api.ConditionFalse && lastReadyCondition.Status != api.ConditionFalse {
|
||||
nc.recordNodeEvent(node, "not_ready")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue