Skip to content

Commit

Permalink
fix resourcedistribution e2e fail
Browse files Browse the repository at this point in the history
Signed-off-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
  • Loading branch information
mingzhou.swx committed Dec 6, 2023
1 parent 7bcaa1b commit 38d0c8e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
if !oldOK || !newOK {
return false
}
if newObject.DeletionTimestamp != nil {
return true
}
return !reflect.DeepEqual(oldObject.Data, newObject.Data) || !reflect.DeepEqual(oldObject.StringData, newObject.StringData)
},
})
Expand All @@ -142,6 +145,9 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
if !oldOK || !newOK {
return false
}
if newObject.DeletionTimestamp != nil {
return true
}
return !reflect.DeepEqual(oldObject.Data, newObject.Data) || !reflect.DeepEqual(oldObject.BinaryData, newObject.BinaryData)
},
})
Expand Down

0 comments on commit 38d0c8e

Please sign in to comment.