From 2499499a0106467185e807dece75eaf0a23d58df Mon Sep 17 00:00:00 2001 From: hlts2 Date: Tue, 24 Dec 2024 22:19:43 +0900 Subject: [PATCH] fix: build error Signed-off-by: hlts2 --- e2e/preexiting_volume_test.go | 2 +- e2e/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/preexiting_volume_test.go b/e2e/preexiting_volume_test.go index a515ed1..54c228d 100644 --- a/e2e/preexiting_volume_test.go +++ b/e2e/preexiting_volume_test.go @@ -83,7 +83,7 @@ func Test_ExistingCivoVolume(t *testing.T) { Spec: corev1.PersistentVolumeClaimSpec{ AccessModes: []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}, VolumeName: pv.Name, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ "storage": resource.MustParse("10Gi"), }, diff --git a/e2e/utils.go b/e2e/utils.go index b9904c4..e80830b 100644 --- a/e2e/utils.go +++ b/e2e/utils.go @@ -17,7 +17,7 @@ func pvcSpec() *corev1.PersistentVolumeClaim { Spec: corev1.PersistentVolumeClaimSpec{ StorageClassName: &storageClassName, AccessModes: []corev1.PersistentVolumeAccessMode{corev1.ReadWriteOnce}, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ "storage": resource.MustParse("10Gi"), },