Delete expectations of a deleted rc instead of letting them expire

This commit is contained in:
Prashanth Balasubramanian
2015-05-08 14:16:58 -07:00
parent 520f84aa60
commit c0a8981b74
3 changed files with 46 additions and 0 deletions

View File

@@ -351,6 +351,7 @@ func (rm *ReplicationManager) syncReplicationController(key string) error {
obj, exists, err := rm.controllerStore.Store.GetByKey(key)
if !exists {
glog.Infof("Replication Controller has been deleted %v", key)
rm.expectations.DeleteExpectations(key)
return nil
}
if err != nil {