From deeaf5528180a4187717def4847f28041a33ea02 Mon Sep 17 00:00:00 2001 From: muicoder Date: Thu, 23 Feb 2023 11:33:08 +0800 Subject: [PATCH] Fix Bug: Set InsecureSkipVerify=true for redisClient(operator) when using TLS Signed-off-by: muicoder --- k8sutils/secrets.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/k8sutils/secrets.go b/k8sutils/secrets.go index a8dfda3c2..a93f245b5 100644 --- a/k8sutils/secrets.go +++ b/k8sutils/secrets.go @@ -121,11 +121,12 @@ func getRedisReplicationTLSConfig(cr *redisv1beta1.RedisReplication, redisInfo R } return &tls.Config{ - Certificates: tlsClientCertificates, - ServerName: redisInfo.PodName, - RootCAs: tlsCaCertificates, - MinVersion: 2, - ClientAuth: 0, + Certificates: tlsClientCertificates, + ServerName: redisInfo.PodName, + RootCAs: tlsCaCertificates, + InsecureSkipVerify: true, + MinVersion: 2, + ClientAuth: 0, } } return nil