mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	Change the scheduler plugins PluginFactory function to use context parameter to pass logger
- Migrated pkg/scheduler/framework/plugins/nodevolumelimits to use contextual logging - Fix golangci-lint validation failed - Check for plugins creation err
This commit is contained in:
		| @@ -302,7 +302,7 @@ func NewFramework(ctx context.Context, r Registry, profile *config.KubeScheduler | ||||
| 				Args: args, | ||||
| 			}) | ||||
| 		} | ||||
| 		p, err := factory(args, f) | ||||
| 		p, err := factory(ctx, args, f) | ||||
| 		if err != nil { | ||||
| 			return nil, fmt.Errorf("initializing plugin %q: %w", name, err) | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Mengjiao Liu
					Mengjiao Liu