mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	reduce code for NewSchedulerCommand func
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
		@@ -83,10 +83,7 @@ for more information about scheduling and the kube-scheduler component.`,
 | 
			
		||||
			if err := opts.Complete(&namedFlagSets); err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			if err := runCommand(cmd, opts, registryOptions...); err != nil {
 | 
			
		||||
				return err
 | 
			
		||||
			}
 | 
			
		||||
			return nil
 | 
			
		||||
			return runCommand(cmd, opts, registryOptions...)
 | 
			
		||||
		},
 | 
			
		||||
		Args: func(cmd *cobra.Command, args []string) error {
 | 
			
		||||
			for _, arg := range args {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user