Use the namespace of the pod when creating the mirror.

This commit is contained in:
Brendan Burns 2015-06-24 21:49:40 -07:00
parent 9a725333b1
commit c669fe300c

View File

@ -49,7 +49,7 @@ func (mc *basicMirrorClient) CreateMirrorPod(pod *api.Pod) error {
}
pod.Annotations[ConfigMirrorAnnotationKey] = MirrorType
_, err := mc.apiserverClient.Pods(NamespaceDefault).Create(pod)
_, err := mc.apiserverClient.Pods(pod.Namespace).Create(pod)
return err
}