Merge pull request #109478 from shintard/added-status-functions

Implementation of a function that returns the wait state of the scheduler
This commit is contained in:
Kubernetes Prow Robot
2022-05-04 02:33:44 -07:00
committed by GitHub
4 changed files with 25 additions and 4 deletions

View File

@@ -1158,7 +1158,7 @@ func (f *frameworkImpl) RunPermitPlugins(ctx context.Context, state *framework.C
status.SetFailedPlugin(pl.Name())
return status
}
if status.Code() == framework.Wait {
if status.IsWait() {
// Not allowed to be greater than maxTimeout.
if timeout > maxTimeout {
timeout = maxTimeout