diff --git a/cmd/kube-scheduler/app/server.go b/cmd/kube-scheduler/app/server.go index bfc718fd914..37d39be7664 100644 --- a/cmd/kube-scheduler/app/server.go +++ b/cmd/kube-scheduler/app/server.go @@ -86,10 +86,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{ diff --git a/pkg/volume/csi/csi_plugin.go b/pkg/volume/csi/csi_plugin.go index 7325ed000de..ee35c6d1463 100644 --- a/pkg/volume/csi/csi_plugin.go +++ b/pkg/volume/csi/csi_plugin.go @@ -360,7 +360,7 @@ func (p *csiPlugin) Init(host volume.VolumeHost) error { return nil } -func initializeCSINode(host volume.VolumeHost, nim nodeinfomanager.Interfacem, csiDriverInformer cache.SharedIndexInformer) error { +func initializeCSINode(host volume.VolumeHost, nim nodeinfomanager.Interface, csiDriverInformer cache.SharedIndexInformer) error { kvh, ok := host.(volume.KubeletVolumeHost) if !ok { klog.V(4).Info("Cast from VolumeHost to KubeletVolumeHost failed. Skipping CSINode initialization, not running on kubelet")