pub fn running_pod_name_and_ip(pod: &Pod) -> Option<(String, String)>Expand description
Extract the name and IP of a pod that is Running and has an IP assigned.
Used when listing BIND9 pods for zone operations: pods that are not yet Running, or that are so freshly scheduled they have no IP, must be SKIPPED rather than failing the entire pod listing - a single Pending pod must not abort operations against the healthy pods.
§Arguments
pod- The pod to inspect
§Returns
Some((name, ip)) if the pod is Running with an IP, None otherwise.