mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #15709 from derekwaynecarr/ingress_status
Auto commit by PR queue bot
This commit is contained in:
commit
72235d6607
@ -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"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user