From c04d9598600c4a8f3cccb5b89b5dbc30cc7eb260 Mon Sep 17 00:00:00 2001 From: Vitor Savian Date: Wed, 23 Apr 2025 20:05:12 -0300 Subject: [PATCH] Fix typo and remove default scheduler config --- cmd/kube-scheduler/app/server.go | 4 ---- pkg/volume/csi/csi_plugin.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/kube-scheduler/app/server.go b/cmd/kube-scheduler/app/server.go index 81cc68f633d..189fa1a9da3 100644 --- a/cmd/kube-scheduler/app/server.go +++ b/cmd/kube-scheduler/app/server.go @@ -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{ diff --git a/pkg/volume/csi/csi_plugin.go b/pkg/volume/csi/csi_plugin.go index d1923d61bb1..3808983344d 100644 --- a/pkg/volume/csi/csi_plugin.go +++ b/pkg/volume/csi/csi_plugin.go @@ -362,7 +362,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")