Skip to content

Commit

Permalink
descheduler: allow annotated pod pass non-retrievable filter
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianyu.wjy <wangjianyu.wjy@alibaba-inc.com>
  • Loading branch information
wangjianyu.wjy committed Apr 10, 2024
1 parent ae23cc9 commit 60855dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/descheduler/controllers/migration/arbitrator/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ func (f *filter) initFilters(args *deschedulerconfig.MigrationControllerArgs, ha
f.retryablePodFilter = func(pod *corev1.Pod) bool {
return evictionsutil.HaveEvictAnnotation(pod) || retriablePodFilters(pod)
}
f.nonRetryablePodFilter = podFilter
f.nonRetryablePodFilter = func(pod *corev1.Pod) bool {
return evictionsutil.HaveEvictAnnotation(pod) || podFilter(pod)
}
f.defaultFilterPlugin = defaultEvictor.(framework.FilterPlugin)
return nil
}
Expand Down

0 comments on commit 60855dd

Please sign in to comment.