package pod
import "k8s.io/kubernetes/pkg/api/pod"
Index ¶
Functions ¶
func FindPort ¶
FindPort locates the container port for the given pod and portName. If the targetPort is a number, use that. If the targetPort is a string, look that string up in all named ports in all containers in the target pod. If no match is found, fail.
Source Files ¶
util.go
- Version
- v1.2.0-alpha.6
- Published
- Jan 13, 2016
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 19 seconds ago –
Tools for package owners.