scheduler/framework: remove useless SetFailedPlugin

Signed-off-by: iyear <ljyngup@gmail.com>
This commit is contained in:
iyear 2022-11-02 10:42:52 +08:00
parent 3edbebe348
commit a62f0c3b9f

View File

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