File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,20 @@ func equalSyncWork(a, b *SyncWork) bool {
468
468
if (a == nil && b != nil ) || (a != nil && b == nil ) {
469
469
return false
470
470
}
471
- return equalUpdate (a .Desired , b .Desired ) && reflect .DeepEqual (a .Overrides , b .Overrides )
471
+ sameVersion := equalUpdate (a .Desired , b .Desired )
472
+ overridesEqual := reflect .DeepEqual (a .Overrides , b .Overrides )
473
+
474
+ if ! sameVersion && ! overridesEqual {
475
+ klog .V (5 ).Info ("Detected version and overrides changes" )
476
+ return false
477
+ } else if ! sameVersion {
478
+ klog .V (5 ).Info ("Detected version change" )
479
+ return false
480
+ } else if ! overridesEqual {
481
+ klog .V (5 ).Info ("Detected overrides change" )
482
+ return false
483
+ }
484
+ return true
472
485
}
473
486
474
487
// updateStatus records the current status of the sync action for observation
You can’t perform that action at this time.
0 commit comments