Skip to content

Commit

Permalink
added namespace to tls configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Egor Cole <[email protected]>
  • Loading branch information
Egor Cole authored and Egor Cole committed Jan 30, 2024
1 parent 3e6fcb9 commit 642f4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8sutils/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 642f4c0

Please sign in to comment.