From 1bf79b7651a42393b609f754fd0643fdddcf8687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Stra=C3=9Fberger?= Date: Thu, 6 Jun 2024 13:33:26 +0200 Subject: [PATCH] Fix lint errors --- operator/redisfailover/service/generator_test.go | 12 ++++++------ service/k8s/statefulset_test.go | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/operator/redisfailover/service/generator_test.go b/operator/redisfailover/service/generator_test.go index 57c64c9d1..328091af5 100644 --- a/operator/redisfailover/service/generator_test.go +++ b/operator/redisfailover/service/generator_test.go @@ -261,7 +261,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -280,7 +280,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -376,7 +376,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -395,7 +395,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -486,7 +486,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -506,7 +506,7 @@ func TestRedisStatefulSetStorageGeneration(t *testing.T) { AccessModes: []corev1.PersistentVolumeAccessMode{ "ReadWriteOnce", }, - Resources: corev1.ResourceRequirements{ + Resources: corev1.VolumeResourceRequirements{ Requests: corev1.ResourceList{ corev1.ResourceStorage: resource.MustParse("1Gi"), }, diff --git a/service/k8s/statefulset_test.go b/service/k8s/statefulset_test.go index 3f7f94852..c1e7d098f 100644 --- a/service/k8s/statefulset_test.go +++ b/service/k8s/statefulset_test.go @@ -133,7 +133,7 @@ func TestStatefulSetServiceGetCreateOrUpdate(t *testing.T) { VolumeClaimTemplates: []v1.PersistentVolumeClaim{ { Spec: v1.PersistentVolumeClaimSpec{ - Resources: v1.ResourceRequirements{ + Resources: v1.VolumeResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceStorage: resource.MustParse("0.5Gi"), }, @@ -152,7 +152,7 @@ func TestStatefulSetServiceGetCreateOrUpdate(t *testing.T) { VolumeClaimTemplates: []v1.PersistentVolumeClaim{ { Spec: v1.PersistentVolumeClaimSpec{ - Resources: v1.ResourceRequirements{ + Resources: v1.VolumeResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceStorage: resource.MustParse("1Gi"), }, @@ -174,7 +174,7 @@ func TestStatefulSetServiceGetCreateOrUpdate(t *testing.T) { }, Spec: v1.PersistentVolumeClaimSpec{ VolumeName: "vol-1", - Resources: v1.ResourceRequirements{ + Resources: v1.VolumeResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceStorage: resource.MustParse("0.5Gi"), }, @@ -185,7 +185,7 @@ func TestStatefulSetServiceGetCreateOrUpdate(t *testing.T) { { Spec: v1.PersistentVolumeClaimSpec{ VolumeName: "vol-2", - Resources: v1.ResourceRequirements{ + Resources: v1.VolumeResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceStorage: resource.MustParse("1Gi"), },