Skip to content

Commit

Permalink
controller: delete resource from recent list
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Sep 30, 2024
1 parent 8a31945 commit 4beba76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ func (c *Controller) subscribe(ctx context.Context) {
OldObject: oldObj,
}
_, exists := newObjs[uid]
if !exists {
delete(oldObjs, uid)
}
return event, !exists
})

Expand Down

0 comments on commit 4beba76

Please sign in to comment.