Skip to content

Commit

Permalink
fix: controller debug message - sotw has not changed
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Oct 25, 2024
1 parent d33de83 commit 6e77def
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,10 @@ func (c *Controller) handleCacheEvent(snapshot watchable.Snapshot[string, Store]
events = append(events, deleteEvents...)

if len(events) > 0 { // this condition is actually redundant; if the snapshot has updates, there must be events
c.logger.V(1).Info("state of the world has not changed")
c.propagate(events)
}
} else {
c.logger.V(1).Info("state of the world has not changed")
}

return objs
}

0 comments on commit 6e77def

Please sign in to comment.