From abe126588ca4f046ef6a982c039877b70d023cdd Mon Sep 17 00:00:00 2001 From: Vitor Savian Date: Fri, 23 Feb 2024 12:03:42 -0300 Subject: [PATCH] Add a return when kine is set to use tls Signed-off-by: Vitor Savian --- pkg/endpoint/endpoint.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/endpoint/endpoint.go b/pkg/endpoint/endpoint.go index 2a6abad7..6e82eb3b 100644 --- a/pkg/endpoint/endpoint.go +++ b/pkg/endpoint/endpoint.go @@ -107,7 +107,9 @@ func Listen(ctx context.Context, config Config) (ETCDConfig, error) { return ETCDConfig{ LeaderElect: leaderelect, Endpoints: []string{endpoint}, - TLSConfig: tls.Config{}, + TLSConfig: tls.Config{ + CAFile: config.ServerTLSConfig.CAFile, + }, }, nil }