code: func ValidateLoadBalancerStatus(status *core.LoadBalancerStatus, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  	for i, ingress := range status.Ingress {
  		idxPath := fldPath.Child("ingress").Index(i)
  		if len(ingress.IP) > 0 {
  			if isIP := (net.ParseIP(ingress.IP) != nil); !isIP {
  				allErrs = append(allErrs, field.Invalid(idxPath.Child("ip"), ingress.IP, "must be a valid IP address"))
  			}
  		}
  		if len(ingress.Hostname) > 0 {
  			for _, msg := range validation.IsDNS1123Subdomain(ingress.Hostname) {
  				allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, msg))
  			}
  			if isIP := (net.ParseIP(ingress.Hostname) != nil); isIP {
  				allErrs = append(allErrs, field.Invalid(idxPath.Child("hostname"), ingress.Hostname, "must be a DNS name, not an IP address"))
  			}
  		}
  	}
  	return allErrs
  }
docs: // ValidateLoadBalancerStatus validates required fields on a LoadBalancerStatus