mirror of https://github.com/k3s-io/k3s
[Release-1.21] Populate EtcdConfig in runtime from datastore when etcd is disabled (#5229)
* Populate EtcdConfig in runtime from datastore when etcd is disabled (#5222) Fixes issue with secrets-encrypt rotate not having any etcd endpoints available on nodes without a local etcd server. Signed-off-by: Brad Davidson <brad.davidson@rancher.com> * Revert to old Kine naming Signed-off-by: Derek Nola <derek.nola@suse.com> Co-authored-by: Brad Davidson <brad.davidson@rancher.com>pull/5233/head
parent
0ec1c41cd5
commit
3368116172
|
@ -65,6 +65,9 @@ func (c *Cluster) Start(ctx context.Context) (<-chan struct{}, error) {
|
|||
logrus.Warnf("Failed to remove this node from etcd members")
|
||||
}
|
||||
|
||||
c.config.Runtime.EtcdConfig.Endpoints = strings.Split(c.config.Datastore.Endpoint, ",")
|
||||
c.config.Runtime.EtcdConfig.TLSConfig = c.config.Datastore.Config
|
||||
|
||||
return ready, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue