Browse Source

change error to warn when removing self from etcd members

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3003/head
galal-hussein 4 years ago
parent
commit
ef999f0b4f
  1. 3
      pkg/cluster/cluster.go

3
pkg/cluster/cluster.go

@ -12,6 +12,7 @@ import (
"github.com/rancher/k3s/pkg/cluster/managed" "github.com/rancher/k3s/pkg/cluster/managed"
"github.com/rancher/k3s/pkg/daemons/config" "github.com/rancher/k3s/pkg/daemons/config"
"github.com/rancher/k3s/pkg/etcd" "github.com/rancher/k3s/pkg/etcd"
"github.com/sirupsen/logrus"
) )
type Cluster struct { type Cluster struct {
@ -61,7 +62,7 @@ func (c *Cluster) Start(ctx context.Context) (<-chan struct{}, error) {
// remove etcd member if it exists // remove etcd member if it exists
if err := c.managedDB.RemoveSelf(ctx); err != nil { if err := c.managedDB.RemoveSelf(ctx); err != nil {
return nil, err logrus.Warnf("Failed to remove this node from etcd members")
} }
return ready, nil return ready, nil

Loading…
Cancel
Save