Fix typo and remove default scheduler config

This commit is contained in:
Vitor Savian 2025-04-23 20:05:12 -03:00 committed by Rafael Breno
parent 853d0d35cb
commit 5a12bfb950
2 changed files with 1 additions and 5 deletions

View File

@ -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{

View File

@ -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")