Skip to content

Commit

Permalink
Changed certificate serverName to pod+namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadQadora committed Jan 27, 2025
1 parent 546eaf2 commit d623881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8sutils/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func getRedisTLSConfig(ctx context.Context, client kubernetes.Interface, namespa

return &tls.Config{
Certificates: []tls.Certificate{cert},
ServerName: podName,
ServerName: podName + "." + namespace,
RootCAs: tlsCaCertificates,
MinVersion: tls.VersionTLS12,
ClientAuth: tls.NoClientCert,
Expand Down

0 comments on commit d623881

Please sign in to comment.