Skip to content

Commit

Permalink
added namespace to tls configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Cole authored and Egor Cole committed Jan 30, 2024
1 parent 3e6fcb9 commit 14290db
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 14290db

Please sign in to comment.