Skip to content

Commit 68bb7fc

Browse files
authored
also update the resourceversion of the deleting work (#133)
Signed-off-by: Wei Liu <liuweixa@redhat.com>
1 parent 92feddf commit 68bb7fc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cloudevents/clients/work/store/informer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ func (s *AgentInformerWatcherStore) HandleReceivedResource(action types.Resource
136136
}
137137

138138
updatedWork := lastWork.DeepCopy()
139+
updatedWork.Generation = work.Generation
140+
updatedWork.ResourceVersion = work.ResourceVersion
139141
updatedWork.DeletionTimestamp = work.DeletionTimestamp
140142
return s.Update(updatedWork)
141143
default:

0 commit comments

Comments
 (0)