Skip to content

Commit c1356d2

Browse files
authored
Merge pull request #4425 from wweiwei-li/main
Correct hostname
2 parents 6465760 + 74dde0c commit c1356d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/ingress/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func FindIngressDNSName(ing *networking.Ingress) string {
1818
func FindIngressTwoDNSName(ing *networking.Ingress) (albDNS string, nlbDNS string) {
1919
for _, ingSTS := range ing.Status.LoadBalancer.Ingress {
2020
if ingSTS.Hostname != "" {
21-
if strings.Contains(ingSTS.Hostname, "elb.amazonaws.com") {
21+
if strings.Contains(ingSTS.Hostname, "elb.amazonaws") {
2222
albDNS = ingSTS.Hostname
2323
} else {
2424
nlbDNS = ingSTS.Hostname

0 commit comments

Comments
 (0)