Changing a few remaining instances of passing pods around by value. I
avoided changing api.PodList.Items to []*api.Pod.
This commit is contained in:
@@ -34,10 +34,10 @@ type fakeMirrorClient struct {
|
||||
deleteCounts map[string]int
|
||||
}
|
||||
|
||||
func (fmc *fakeMirrorClient) CreateMirrorPod(pod api.Pod) error {
|
||||
func (fmc *fakeMirrorClient) CreateMirrorPod(pod *api.Pod) error {
|
||||
fmc.mirrorPodLock.Lock()
|
||||
defer fmc.mirrorPodLock.Unlock()
|
||||
podFullName := kubecontainer.GetPodFullName(&pod)
|
||||
podFullName := kubecontainer.GetPodFullName(pod)
|
||||
fmc.mirrorPods.Insert(podFullName)
|
||||
fmc.createCounts[podFullName]++
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user