mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
[trivil] fix comment in kube-scheduler
This commit is contained in:
parent
33f873dbbe
commit
612b334fb9
@ -258,7 +258,7 @@ func (o *Options) loadConfigFromFile(file string) (*componentconfig.KubeSchedule
|
|||||||
return o.loadConfig(data)
|
return o.loadConfig(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// loadConfig decodes data as a KubeProxyConfiguration object.
|
// loadConfig decodes data as a KubeSchedulerConfiguration object.
|
||||||
func (o *Options) loadConfig(data []byte) (*componentconfig.KubeSchedulerConfiguration, error) {
|
func (o *Options) loadConfig(data []byte) (*componentconfig.KubeSchedulerConfiguration, error) {
|
||||||
configObj, gvk, err := o.codecs.UniversalDecoder().Decode(data, nil, nil)
|
configObj, gvk, err := o.codecs.UniversalDecoder().Decode(data, nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user