From 003e094b4526a99aa2f6f97bf987f11429b06d73 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Tue, 8 Mar 2022 09:04:31 -0800 Subject: [PATCH] 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 --- pkg/cluster/cluster.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index c36039f8f5..84c94dcd9c 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -63,6 +63,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.BackendTLSConfig + return ready, nil }