Skip to content

Commit

Permalink
Merge pull request #940 from openshift-cherrypick-robot/cherry-pick-9…
Browse files Browse the repository at this point in the history
…34-to-18.0.0-proposed

[18.0.0-proposed] [rabbitmq] remove CommonName from tls cert
  • Loading branch information
openshift-merge-bot[bot] authored Jul 16, 2024
2 parents de4d708 + 4315704 commit 8e5d909
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/openstack/rabbitmq.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,10 @@ func reconcileRabbitMQ(
}

tlsCert := ""
commonName := fmt.Sprintf("%s.%s", hostname, ClusterInternalDomain)

if instance.Spec.TLS.PodLevel.Enabled {
certRequest := certmanager.CertificateRequest{
IssuerName: instance.GetInternalIssuer(),
CertName: fmt.Sprintf("%s-svc", rabbitmq.Name),
CommonName: &commonName,
Hostnames: hostnames,
Subject: &certmgrv1.X509Subject{
Organizations: []string{fmt.Sprintf("%s.%s", rabbitmq.Namespace, ClusterInternalDomain)},
Expand Down

0 comments on commit 8e5d909

Please sign in to comment.