func ResolveContainerPort(param intstr.IntOrString, container *v1.Container) (int, error) { … } // findPortByName is a helper function to look up a port in a container by name. func findPortByName(container *v1.Container, portName string) (int, error) { … }