From a656c0f8a4fd2deb825b0ce866432c5fb1a75bfc Mon Sep 17 00:00:00 2001 From: mqliang Date: Tue, 20 Oct 2015 15:33:53 +0800 Subject: [PATCH] add error handler when delete pod --- pkg/controller/replication/replication_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/replication/replication_controller.go b/pkg/controller/replication/replication_controller.go index fd59aa5d9cb..d04079fb3d1 100644 --- a/pkg/controller/replication/replication_controller.go +++ b/pkg/controller/replication/replication_controller.go @@ -388,6 +388,7 @@ func (rm *ReplicationManager) manageReplicas(filteredPods []*api.Pod, rc *api.Re // Decrement the expected number of deletes because the informer won't observe this deletion glog.V(2).Infof("Failed deletion, decrementing expectations for controller %q/%q", rc.Namespace, rc.Name) rm.expectations.DeletionObserved(rcKey) + util.HandleError(err) } }(i) }