Commit 1904d4e1 authored by Maxwell Forbes's avatar Maxwell Forbes

Merge pull request #10330 from brendandburns/addon

Use the namespace of the pod when creating the mirror.
parents 8b0efe8b c669fe30
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment