mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Renamed func name according to TODO.
This commit is contained in:
parent
38e3351312
commit
fe6bfd1dc0
@ -143,8 +143,7 @@ func (cc *Controller) Bootstrap() (*kubeletconfig.KubeletConfiguration, error) {
|
|||||||
// assert: now we know that a dynamicConfigDir was provided, and we can rely on that existing
|
// assert: now we know that a dynamicConfigDir was provided, and we can rely on that existing
|
||||||
|
|
||||||
// make sure the filesystem is set up properly
|
// make sure the filesystem is set up properly
|
||||||
// TODO(mtaufen): rename this to initializeDynamicConfigDir
|
if err := cc.initializeDynamicConfigDir(); err != nil {
|
||||||
if err := cc.initialize(); err != nil {
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -244,10 +243,10 @@ func (cc *Controller) StartSync(client clientset.Interface, nodeName string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// initialize makes sure that the storage layers for various controller components are set up correctly
|
// initializeDynamicConfigDir makes sure that the storage layers for various controller components are set up correctly
|
||||||
func (cc *Controller) initialize() error {
|
func (cc *Controller) initializeDynamicConfigDir() error {
|
||||||
utillog.Infof("ensuring filesystem is set up correctly")
|
utillog.Infof("ensuring filesystem is set up correctly")
|
||||||
// initialize local checkpoint storage location
|
// initializeDynamicConfigDir local checkpoint storage location
|
||||||
return cc.checkpointStore.Initialize()
|
return cc.checkpointStore.Initialize()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user