diff --git a/pkg/common/utils/resource/pod_test.go b/pkg/common/utils/resource/pod_test.go index 46be90f..528795d 100644 --- a/pkg/common/utils/resource/pod_test.go +++ b/pkg/common/utils/resource/pod_test.go @@ -71,7 +71,7 @@ func Test_NewPodTemplateSpecWithCommonSpec(t *testing.T) { "namespace": "default", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("200Gi"), }, @@ -98,7 +98,7 @@ func Test_NewPodTemplateSpecWithCommonSpec(t *testing.T) { "namespace": "default", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("200Gi"), }, diff --git a/pkg/common/utils/resource/resource_common_test.go b/pkg/common/utils/resource/resource_common_test.go index 6839116..b5aa17d 100644 --- a/pkg/common/utils/resource/resource_common_test.go +++ b/pkg/common/utils/resource/resource_common_test.go @@ -65,7 +65,7 @@ var dcr = &v1.DorisCluster{ "component": "fe", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("100Gi"), }, @@ -80,7 +80,7 @@ var dcr = &v1.DorisCluster{ "component": "fe", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("100Gi"), }, @@ -110,7 +110,7 @@ var dcr = &v1.DorisCluster{ "component": "be", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("200Gi"), }, @@ -125,7 +125,7 @@ var dcr = &v1.DorisCluster{ "component": "be", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("100Gi"), }, @@ -151,7 +151,7 @@ var dcr = &v1.DorisCluster{ "component": "be", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("100Gi"), }, @@ -166,7 +166,7 @@ var dcr = &v1.DorisCluster{ "component": "be", }, PersistentVolumeClaimSpec: corev1.PersistentVolumeClaimSpec{ - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: map[corev1.ResourceName]kr.Quantity{ "storage": kr.MustParse("100Gi"), },