mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #10330 from brendandburns/addon
Use the namespace of the pod when creating the mirror.
This commit is contained in:
commit
1904d4e1ce
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user