mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Add more logs for bootstrap
This commit is contained in:
parent
e79fda96d2
commit
fdc1427317
@ -72,6 +72,7 @@ func fetchBootstrapData(cfg *config.Control) error {
|
||||
}
|
||||
defer cli.Close()
|
||||
|
||||
logrus.Info("Fetching bootstrap data from etcd")
|
||||
gr, err := cli.Get(context.TODO(), k3sRuntimeEtcdPath)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -136,6 +137,7 @@ func storeBootstrapData(cfg *config.Control) error {
|
||||
return err
|
||||
}
|
||||
|
||||
logrus.Info("Storing bootstrap data to etcd")
|
||||
runtimeBase64 := base64.StdEncoding.EncodeToString(certData)
|
||||
_, err = cli.Put(context.TODO(), k3sRuntimeEtcdPath, runtimeBase64)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user