Delete expectations of a deleted rc instead of letting them expire
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user