Skip to content

Commit

Permalink
Changed certificate serverName to pod+namespace
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Qadora <memomq70@gmail.com>
  • Loading branch information
MuhammadQadora committed Jan 28, 2025
1 parent 546eaf2 commit caa22eb
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 caa22eb

Please sign in to comment.