mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #126641 from haircommander/storage-test
e2e/storage: update block device test to always specify a valid path
This commit is contained in:
commit
89179507c4
@ -285,7 +285,7 @@ var _ = utils.SIGDescribe(framework.WithSerial(), "Volume metrics", func() {
|
||||
pod := makePod(f, pvcBlock, isEphemeral)
|
||||
pod.Spec.Containers[0].VolumeDevices = []v1.VolumeDevice{{
|
||||
Name: pod.Spec.Volumes[0].Name,
|
||||
DevicePath: "/mnt/" + pvcBlock.Name,
|
||||
DevicePath: "/mnt/" + pod.Spec.Volumes[0].Name,
|
||||
}}
|
||||
pod.Spec.Containers[0].VolumeMounts = nil
|
||||
pod, err = c.CoreV1().Pods(ns).Create(ctx, pod, metav1.CreateOptions{})
|
||||
|
Loading…
Reference in New Issue
Block a user