mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
e2e: node: deviceplug: deepcopy the pod dev template
Let's avoid unexpected side effects Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
parent
22a21f974f
commit
56c539bff0
@ -125,7 +125,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
|
|||||||
dp.Spec.Containers[0].Env[i].Value = pluginSockDir
|
dp.Spec.Containers[0].Env[i].Value = pluginSockDir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dptemplate = dp
|
dptemplate = dp.DeepCopy()
|
||||||
devicePluginPod = f.PodClient().CreateSync(dp)
|
devicePluginPod = f.PodClient().CreateSync(dp)
|
||||||
|
|
||||||
ginkgo.By("Waiting for devices to become available on the local node")
|
ginkgo.By("Waiting for devices to become available on the local node")
|
||||||
|
Loading…
Reference in New Issue
Block a user