(pod *api.PodSandbox)
| 214 | } |
| 215 | |
| 216 | func getNetworkNamespace(pod *api.PodSandbox) string { |
| 217 | // get the pod network namespace |
| 218 | for _, namespace := range pod.Linux.GetNamespaces() { |
| 219 | if namespace.Type == "network" { |
| 220 | return namespace.Path |
| 221 | } |
| 222 | } |
| 223 | return "" |
| 224 | } |
| 225 | |
| 226 | func getNetworkNamespaceIPs(nsPath string) []string { |
| 227 | ips := []string{} |
no test coverage detected
searching dependent graphs…