diff --git a/pkg/controllers/rediscluster/rediscluster_controller_test.go b/pkg/controllers/rediscluster/rediscluster_controller_test.go index 253ef696e..07f175c9c 100644 --- a/pkg/controllers/rediscluster/rediscluster_controller_test.go +++ b/pkg/controllers/rediscluster/rediscluster_controller_test.go @@ -25,7 +25,7 @@ var _ = Describe("Redis cluster test", func() { redisClusterCRName string ) BeforeEach(func() { - redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) + redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec redisClusterCR = factories.New(redisClusterCRName) Expect(k8sClient.Create(context.TODO(), redisClusterCR)).Should(Succeed()) }) @@ -74,7 +74,7 @@ var _ = Describe("Redis cluster test", func() { redisClusterCRName string ) BeforeEach(func() { - redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) + redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec redisClusterCR = factories.New(redisClusterCRName, factories.DisablePersistence()) Expect(k8sClient.Create(context.TODO(), redisClusterCR)).Should(Succeed()) }) @@ -96,7 +96,7 @@ var _ = Describe("Redis cluster test", func() { redisClusterCRName string ) BeforeEach(func() { - redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) + redisClusterCRName = fmt.Sprintf("redis-cluster-%d", rand.Int31()) //nolint:gosec redisClusterCR = factories.New( redisClusterCRName, factories.WithAnnotations(map[string]string{ diff --git a/pkg/controllers/redisreplication/redisreplication_controller_test.go b/pkg/controllers/redisreplication/redisreplication_controller_test.go index 88b9a2c95..91595fad9 100644 --- a/pkg/controllers/redisreplication/redisreplication_controller_test.go +++ b/pkg/controllers/redisreplication/redisreplication_controller_test.go @@ -25,7 +25,7 @@ var _ = Describe("Redis test", func() { crName string ) BeforeEach(func() { - crName = fmt.Sprintf("redis-%d", rand.Int31()) + crName = fmt.Sprintf("redis-%d", rand.Int31()) //nolint:gosec cr = factories.New(crName) Expect(k8sClient.Create(context.TODO(), cr)).Should(Succeed()) }) @@ -73,7 +73,7 @@ var _ = Describe("Redis test", func() { crName string ) BeforeEach(func() { - crName = fmt.Sprintf("redis-%d", rand.Int31()) + crName = fmt.Sprintf("redis-%d", rand.Int31()) //nolint:gosec cr = factories.New( crName, factories.WithAnnotations(map[string]string{