Fix typo and remove default scheduler config

This commit is contained in:
Vitor Savian
2025-04-23 20:05:12 -03:00
committed by rafaelbreno[commit]
parent a2c39f1583
commit 0678fddaf1
2 changed files with 1 additions and 5 deletions

View File

@@ -87,10 +87,6 @@ type Option func(runtime.Registry) error
// NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
func NewSchedulerCommand(stopCh <-chan struct{}, registryOptions ...Option) *cobra.Command {
// explicitly register (if not already registered) the kube effective version and feature gate in DefaultComponentGlobalsRegistry,
// which will be used in NewOptions.
_, _ = s.De.DefaultComponentGlobalsRegistry.ComponentGlobalsOrRegister(
featuregate.DefaultKubeComponent, utilversion.DefaultBuildEffectiveVersion(), utilfeature.DefaultMutableFeatureGate)
opts := options.NewOptions()
cmd := &cobra.Command{