code: func (s *simpleProvider) hasInvalidHostPort(container *api.Container, fldPath *field.Path) field.ErrorList {
  	allErrs := field.ErrorList{}
  	for _, cp := range container.Ports {
  		if cp.HostPort > 0 && !s.isValidHostPort(cp.HostPort) {
  			detail := fmt.Sprintf("Host port %d is not allowed to be used. Allowed ports: [%s]", cp.HostPort, hostPortRangesToString(s.psp.Spec.HostPorts))
  			allErrs = append(allErrs, field.Invalid(fldPath.Child("hostPort"), cp.HostPort, detail))
  		}
  	}
  	return allErrs
  }
docs: // hasInvalidHostPort checks whether the port definitions on the container fall outside of the ranges allowed by the PSP.