code: func convertPodNamedPortToNumber(ports []string, pod corev1.Pod) ([]string, error) {
  	var converted []string
  	for _, port := range ports {
  		localPort, remotePort := splitPort(port)
  
  		containerPortStr := remotePort
  		_, err := strconv.Atoi(remotePort)
  		if err != nil {
  			containerPort, err := util.LookupContainerPortNumberByName(pod, remotePort)
  			if err != nil {
  				return nil, err
  			}
  
  			containerPortStr = strconv.Itoa(int(containerPort))
  		}
  
  		if localPort != remotePort {
  			converted = append(converted, fmt.Sprintf("%s:%s", localPort, containerPortStr))
  		} else {
  			converted = append(converted, containerPortStr)
  		}
  	}
  
  	return converted, nil
  }
docs: // convertPodNamedPortToNumber converts named ports into port numbers
  // It returns an error when a named port can't be found in the pod containers