MCPcopy
hub / github.com/kubernetes/kubernetes / GetPod

Method GetPod

pkg/scheduler/backend/cache/interface.go:86–86  ·  view source on GitHub ↗

GetPod returns the pod from the cache with the same namespace and the same name of the specified pod.

(pod *v1.Pod)

Source from the content-addressed store, hash-verified

84 // GetPod returns the pod from the cache with the same namespace and the
85 // same name of the specified pod.
86 GetPod(pod *v1.Pod) (*v1.Pod, error)
87
88 // IsAssumedPod returns true if the pod is assumed.
89 IsAssumedPod(pod *v1.Pod) (bool, error)

Callers 15

TestAddPodFunction · 0.65
TestUpdatePodFunction · 0.65
TestDeletePodFunction · 0.65
convertPodUIDToPodMethod · 0.65
podGroupInfoForPodMethod · 0.65
StringMethod · 0.65
AddPodInfoMethod · 0.65
removeFromSliceFunction · 0.65
updateMethod · 0.65

Calls

no outgoing calls

Tested by 15

TestAddPodFunction · 0.52
TestUpdatePodFunction · 0.52
TestDeletePodFunction · 0.52
TestCustomSelectionFunction · 0.52
TestScorePlacementFunction · 0.52
SelectVictimsOnNodeMethod · 0.52
SelectVictimsOnNodeMethod · 0.52
FilterMethod · 0.52