- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getPodHash (0.15 sec)
-
pkg/kubelet/pod/mirror_client.go
return nil } // Make a copy of the pod. copyPod := *pod copyPod.Annotations = make(map[string]string) for k, v := range pod.Annotations { copyPod.Annotations[k] = v } hash := getPodHash(pod) copyPod.Annotations[kubetypes.ConfigMirrorAnnotationKey] = hash // With the MirrorPodNodeRestriction feature, mirror pods are required to have an owner reference // to the owning node.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 21 11:38:40 UTC 2021 - 5.5K bytes - Viewed (0) -
pkg/kubelet/pod/pod_manager.go
if pod.Name != mirrorPod.Name || pod.Namespace != mirrorPod.Namespace { return false } hash, ok := getHashFromMirrorPod(mirrorPod) if !ok { return false } return hash == getPodHash(pod) } func podsMapToPods(UIDMap map[kubetypes.ResolvedPodUID]*v1.Pod) []*v1.Pod { pods := make([]*v1.Pod, 0, len(UIDMap)) for _, pod := range UIDMap { pods = append(pods, pod) } return pods
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:00 UTC 2024 - 11.9K bytes - Viewed (0)