Merge pull request #10330 from brendandburns/addon

Use the namespace of the pod when creating the mirror.
This commit is contained in:
Maxwell Forbes 2015-06-25 10:04:25 -07:00
commit 1904d4e1ce

View File

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