- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewFS (0.19 sec)
-
cni/pkg/repair/netns.go
func getPodNetNs(pod *corev1.Pod) (string, error) { parsedPodAddr := net.ParseIP(pod.Status.PodIP) if parsedPodAddr == nil { return "", fmt.Errorf("failed to parse addr: %s", pod.Status.PodIP) } fs, err := procfs.NewFS("/host/proc") if err != nil { return "", fmt.Errorf("read procfs: %v", err) } procs, err := fs.AllProcs() if err != nil { return "", fmt.Errorf("read procs: %v", err) } oldest := uint64(math.MaxUint64)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 4.3K bytes - Viewed (0)