Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Saremox committed Jun 6, 2024

Verified

This commit was signed with the committer’s verified signature.
davidwendt David Wendt
1 parent d7d2339 commit 1bf79b7
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions operator/redisfailover/service/generator_test.go
Original file line number Diff line number Diff line change
@@ -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"),
},
8 changes: 4 additions & 4 deletions service/k8s/statefulset_test.go
Original file line number Diff line number Diff line change
@@ -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"),
},

0 comments on commit 1bf79b7

Please sign in to comment.