Skip to content

Commit

Permalink
Merge pull request #9288 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…9263-to-release-4.18

[release-4.18] OCPBUGS-45301: capi/aws: use LB name when finding Hosted Zone ID
  • Loading branch information
openshift-merge-bot[bot] authored Dec 11, 2024
2 parents f5d5fae + 143870e commit 0cb990e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/infrastructure/aws/clusterapi/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (*Provider) InfraReady(ctx context.Context, in clusterapi.InfraReadyInput)
}

pubLB := awsCluster.Status.Network.SecondaryAPIServerELB
aliasZoneID, err := getHostedZoneIDForNLB(ctx, awsSession, awsCluster.Spec.Region, pubLB.DNSName)
aliasZoneID, err := getHostedZoneIDForNLB(ctx, awsSession, awsCluster.Spec.Region, pubLB.Name)
if err != nil {
return fmt.Errorf("failed to find HostedZone ID for NLB: %w", err)
}
Expand Down

0 comments on commit 0cb990e

Please sign in to comment.