code: func findServicePort(svc *v1.Service, port int32) (*v1.ServicePort, error) {
  	for _, svcPort := range svc.Spec.Ports {
  		if svcPort.Port == port {
  			return &svcPort, nil
  		}
  	}
  	return nil, errors.NewServiceUnavailable(fmt.Sprintf("no service port %q found for service %q", port, svc.Name))
  }
docs: // findServicePort finds the service port by name or numerically.