We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0fa9b04 + b060ad1 commit 032a81fCopy full SHA for 032a81f
pkg/cvo/sync_worker.go
@@ -429,12 +429,10 @@ func (w *SyncWorker) calculateNext(work *SyncWork) bool {
429
return changed
430
}
431
432
-// equalUpdate returns true if two updates have the same image.
+// equalUpdate returns true if two updates are semantically equivalent.
433
+// It checks if the updates have have the same force and image values
434
func equalUpdate(a, b configv1.Update) bool {
- if a.Force != b.Force {
435
- return false
436
- }
437
- return a.Image == b.Image
+ return a.Force == b.Force && a.Image == b.Image
438
439
440
// equalSyncWork returns true if a and b are equal.
0 commit comments