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
fdc14273
Commit
fdc14273
authored
Jul 14, 2019
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more logs for bootstrap
parent
e79fda96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
bootstrap.go
pkg/daemons/control/bootstrap.go
+2
-0
No files found.
pkg/daemons/control/bootstrap.go
View file @
fdc14273
...
@@ -72,6 +72,7 @@ func fetchBootstrapData(cfg *config.Control) error {
...
@@ -72,6 +72,7 @@ func fetchBootstrapData(cfg *config.Control) error {
}
}
defer
cli
.
Close
()
defer
cli
.
Close
()
logrus
.
Info
(
"Fetching bootstrap data from etcd"
)
gr
,
err
:=
cli
.
Get
(
context
.
TODO
(),
k3sRuntimeEtcdPath
)
gr
,
err
:=
cli
.
Get
(
context
.
TODO
(),
k3sRuntimeEtcdPath
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
...
@@ -136,6 +137,7 @@ func storeBootstrapData(cfg *config.Control) error {
...
@@ -136,6 +137,7 @@ func storeBootstrapData(cfg *config.Control) error {
return
err
return
err
}
}
logrus
.
Info
(
"Storing bootstrap data to etcd"
)
runtimeBase64
:=
base64
.
StdEncoding
.
EncodeToString
(
certData
)
runtimeBase64
:=
base64
.
StdEncoding
.
EncodeToString
(
certData
)
_
,
err
=
cli
.
Put
(
context
.
TODO
(),
k3sRuntimeEtcdPath
,
runtimeBase64
)
_
,
err
=
cli
.
Put
(
context
.
TODO
(),
k3sRuntimeEtcdPath
,
runtimeBase64
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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