Merge pull request #8000 from bprashanth/rc_ttl_cleanup

Delete expectations of a deleted rc instead of letting them expire
This commit is contained in:
Dawn Chen
2015-05-22 10:33:09 -07:00
3 changed files with 46 additions and 0 deletions

View File

@@ -354,6 +354,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 {