Skip to content

Commit

Permalink
cloneset watch changes to pods' ownerRef (#1358)
Browse files Browse the repository at this point in the history
Signed-off-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
Co-authored-by: mingzhou.swx <mingzhou.swx@alibaba-inc.com>
  • Loading branch information
veophi and mingzhou.swx committed Aug 7, 2023
1 parent 915b0ab commit 7da41b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/cloneset/cloneset_event_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (e *podEventHandler) Update(evt event.UpdateEvent, q workqueue.RateLimiting
}

if utilfeature.DefaultFeatureGate.Enabled(features.CloneSetEventHandlerOptimization) {
if !labelChanged && e.shouldIgnoreUpdate(req, oldPod, curPod) {
if !controllerRefChanged && !labelChanged && e.shouldIgnoreUpdate(req, oldPod, curPod) {
return
}
}
Expand Down

0 comments on commit 7da41b9

Please sign in to comment.