mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Merge pull request #121632 from kerthcet/fix/runscoreplugins
Fix panic when process RunScorePlugins for cap out of range
This commit is contained in:
		| @@ -1030,7 +1030,7 @@ func (f *frameworkImpl) RunScorePlugins(ctx context.Context, state *framework.Cy | ||||
| 		metrics.FrameworkExtensionPointDuration.WithLabelValues(metrics.Score, status.Code().String(), f.profileName).Observe(metrics.SinceInSeconds(startTime)) | ||||
| 	}() | ||||
| 	allNodePluginScores := make([]framework.NodePluginScores, len(nodes)) | ||||
| 	numPlugins := len(f.scorePlugins) - state.SkipScorePlugins.Len() | ||||
| 	numPlugins := len(f.scorePlugins) | ||||
| 	plugins := make([]framework.ScorePlugin, 0, numPlugins) | ||||
| 	pluginToNodeScores := make(map[string]framework.NodeScoreList, numPlugins) | ||||
| 	for _, pl := range f.scorePlugins { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kubernetes Prow Robot
					Kubernetes Prow Robot