mirror of https://github.com/k3s-io/k3s
Add more logs for bootstrap
parent
e79fda96d2
commit
fdc1427317
|
@ -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 {
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in New Issue