Commit ef999f0b authored by galal-hussein's avatar galal-hussein

change error to warn when removing self from etcd members

parent 885b7391
......@@ -12,6 +12,7 @@ import (
"github.com/rancher/k3s/pkg/cluster/managed"
"github.com/rancher/k3s/pkg/daemons/config"
"github.com/rancher/k3s/pkg/etcd"
"github.com/sirupsen/logrus"
)
type Cluster struct {
......@@ -61,7 +62,7 @@ func (c *Cluster) Start(ctx context.Context) (<-chan struct{}, error) {
// remove etcd member if it exists
if err := c.managedDB.RemoveSelf(ctx); err != nil {
return nil, err
logrus.Warnf("Failed to remove this node from etcd members")
}
return ready, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment