mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Fix: fiterror in permit plugin not handled perfectly
We only added failed plulgins, but actually this will not work unless we make the status with a fitError because we only copy the failured plugins to podInfo if it is a fitError Signed-off-by: kerthcet <kerthcet@gmail.com>
This commit is contained in:
		| @@ -1333,8 +1333,7 @@ func (f *frameworkImpl) RunPermitPlugins(ctx context.Context, state *framework.C | ||||
| 		if !status.IsSuccess() { | ||||
| 			if status.IsUnschedulable() { | ||||
| 				logger.V(4).Info("Pod rejected by plugin", "pod", klog.KObj(pod), "plugin", pl.Name(), "status", status.Message()) | ||||
| 				status.SetFailedPlugin(pl.Name()) | ||||
| 				return status | ||||
| 				return status.WithFailedPlugin(pl.Name()) | ||||
| 			} | ||||
| 			if status.IsWait() { | ||||
| 				// Not allowed to be greater than maxTimeout. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kerthcet
					kerthcet