Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
fe6bfd1d
Commit
fe6bfd1d
authored
Dec 20, 2017
by
Da K. Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed func name according to TODO.
parent
38e33513
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
controller.go
pkg/kubelet/kubeletconfig/controller.go
+4
-5
No files found.
pkg/kubelet/kubeletconfig/controller.go
View file @
fe6bfd1d
...
@@ -143,8 +143,7 @@ func (cc *Controller) Bootstrap() (*kubeletconfig.KubeletConfiguration, error) {
...
@@ -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) {
...
@@ -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
// initialize
DynamicConfigDir
makes sure that the storage layers for various controller components are set up correctly
func
(
cc
*
Controller
)
initialize
()
error
{
func
(
cc
*
Controller
)
initialize
DynamicConfigDir
()
error
{
utillog
.
Infof
(
"ensuring filesystem is set up correctly"
)
utillog
.
Infof
(
"ensuring filesystem is set up correctly"
)
// initialize local checkpoint storage location
// initialize
DynamicConfigDir
local checkpoint storage location
return
cc
.
checkpointStore
.
Initialize
()
return
cc
.
checkpointStore
.
Initialize
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment