From 642f4c0ec32ce5f8a70dbf3548cab6932d1fabe7 Mon Sep 17 00:00:00 2001 From: Egor Cole Date: Wed, 31 Jan 2024 02:46:40 +0400 Subject: [PATCH] added namespace to tls configuration Signed-off-by: Egor Cole --- k8sutils/secrets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8sutils/secrets.go b/k8sutils/secrets.go index 40f3853fe..d4997c62c 100644 --- a/k8sutils/secrets.go +++ b/k8sutils/secrets.go @@ -66,7 +66,7 @@ func getRedisTLSConfig(client kubernetes.Interface, logger logr.Logger, cr *redi return &tls.Config{ Certificates: []tls.Certificate{cert}, - ServerName: redisInfo.PodName, + ServerName: redisInfo.PodName + "." + redisInfo.Namespace, RootCAs: tlsCaCertificates, MinVersion: tls.VersionTLS12, ClientAuth: tls.NoClientCert,