func RegisterCopyOnUpdate(resource string, client *core.Fake, watcher *watch.FakeWatcher) chan runtime.Object { objChan := make(chan runtime.Object, 100) client.AddReactor("update", resource, func(action core.Action) (bool, runtime.Object, error) { updateAction := action.(core.UpdateAction) obj := updateAction.GetObject() go func() { watcher.Modify(obj) objChan <- obj }() return true, obj, nil }) return objChan }