Skip to content

Commit 38d0c8e

Browse files
author
mingzhou.swx
committed
fix resourcedistribution e2e fail
Signed-off-by: mingzhou.swx <[email protected]>
1 parent 7bcaa1b commit 38d0c8e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/controller/resourcedistribution/resourcedistribution_controller.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
122122
if !oldOK || !newOK {
123123
return false
124124
}
125+
if newObject.DeletionTimestamp != nil {
126+
return true
127+
}
125128
return !reflect.DeepEqual(oldObject.Data, newObject.Data) || !reflect.DeepEqual(oldObject.StringData, newObject.StringData)
126129
},
127130
})
@@ -142,6 +145,9 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
142145
if !oldOK || !newOK {
143146
return false
144147
}
148+
if newObject.DeletionTimestamp != nil {
149+
return true
150+
}
145151
return !reflect.DeepEqual(oldObject.Data, newObject.Data) || !reflect.DeepEqual(oldObject.BinaryData, newObject.BinaryData)
146152
},
147153
})

0 commit comments

Comments
 (0)