mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Fix typo and remove default scheduler config
This commit is contained in:
parent
853d0d35cb
commit
5a12bfb950
@ -86,10 +86,6 @@ type Option func(runtime.Registry) error
|
|||||||
|
|
||||||
// NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
|
// NewSchedulerCommand creates a *cobra.Command object with default parameters and registryOptions
|
||||||
func NewSchedulerCommand(stopCh <-chan struct{}, registryOptions ...Option) *cobra.Command {
|
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()
|
opts := options.NewOptions()
|
||||||
|
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
|
@ -360,7 +360,7 @@ func (p *csiPlugin) Init(host volume.VolumeHost) error {
|
|||||||
return nil
|
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)
|
kvh, ok := host.(volume.KubeletVolumeHost)
|
||||||
if !ok {
|
if !ok {
|
||||||
klog.V(4).Info("Cast from VolumeHost to KubeletVolumeHost failed. Skipping CSINode initialization, not running on kubelet")
|
klog.V(4).Info("Cast from VolumeHost to KubeletVolumeHost failed. Skipping CSINode initialization, not running on kubelet")
|
||||||
|
Loading…
Reference in New Issue
Block a user