Merge pull request #113528 from iyear/remove-useless-set

scheduler/framework: remove useless SetFailedPlugin
This commit is contained in:
Kubernetes Prow Robot 2022-11-07 06:52:16 -08:00 committed by GitHub
commit fce1fbec29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1226,7 +1226,6 @@ func (f *frameworkImpl) WaitOnPermit(ctx context.Context, pod *v1.Pod) *framewor
if !s.IsSuccess() { if !s.IsSuccess() {
if s.IsUnschedulable() { if s.IsUnschedulable() {
klog.V(4).InfoS("Pod rejected while waiting on permit", "pod", klog.KObj(pod), "status", s.Message()) klog.V(4).InfoS("Pod rejected while waiting on permit", "pod", klog.KObj(pod), "status", s.Message())
s.SetFailedPlugin(s.FailedPlugin())
return s return s
} }
err := s.AsError() err := s.AsError()