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:
Kubernetes Prow Robot 2024-08-13 22:12:02 -07:00 committed by GitHub
commit 89179507c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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{})