Commit 72235d66 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #15709 from derekwaynecarr/ingress_status

Auto commit by PR queue bot
parents d3ca12f6 65efc784
...@@ -2039,7 +2039,7 @@ func ValidateLoadBalancerStatus(status *api.LoadBalancerStatus) errs.ValidationE ...@@ -2039,7 +2039,7 @@ func ValidateLoadBalancerStatus(status *api.LoadBalancerStatus) errs.ValidationE
allErrs = append(allErrs, errs.NewFieldInvalid("ingress.hostname", ingress.Hostname, errMsg)) allErrs = append(allErrs, errs.NewFieldInvalid("ingress.hostname", ingress.Hostname, errMsg))
} }
if isIP := (net.ParseIP(ingress.Hostname) != nil); isIP { if isIP := (net.ParseIP(ingress.Hostname) != nil); isIP {
allErrs = append(allErrs, errs.NewFieldInvalid("ingress.hostname", ingress.Hostname, "must be a DNS name, not ip address")) allErrs = append(allErrs, errs.NewFieldInvalid("ingress.hostname", ingress.Hostname, "must be a DNS name, not an IP address"))
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment