mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
Fix: Do not fiter event triggered by resync for application controller (#3064)
Signed-off-by: songminglong <1247768069@qq.com>
This commit is contained in:
@@ -398,6 +398,12 @@ func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error {
|
||||
if !isNewApp || !isOldApp {
|
||||
return filterManagedFieldChangesUpdate(e)
|
||||
}
|
||||
|
||||
// We think this event is triggered by resync
|
||||
if reflect.DeepEqual(old, new) {
|
||||
return true
|
||||
}
|
||||
|
||||
// filter managedFields changes
|
||||
new.ManagedFields = old.ManagedFields
|
||||
|
||||
|
||||
Reference in New Issue
Block a user