From 21c57a56335dbc9925e18549581068003229975e Mon Sep 17 00:00:00 2001 From: Federico Simoncelli Date: Wed, 22 Apr 2015 10:46:32 -0400 Subject: [PATCH] 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 --- pkg/cloudprovider/nodecontroller/nodecontroller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/cloudprovider/nodecontroller/nodecontroller.go b/pkg/cloudprovider/nodecontroller/nodecontroller.go index 55510ebfb26..1b53bd5006c 100644 --- a/pkg/cloudprovider/nodecontroller/nodecontroller.go +++ b/pkg/cloudprovider/nodecontroller/nodecontroller.go @@ -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") }