Skip to content

Commit

Permalink
test: add test for redisreplication/redissentinel/rediscluster (#687)
Browse files Browse the repository at this point in the history
* ut for redis replication

Signed-off-by: drivebyer <wuyangmuc@gmail.com>

* ut for redis sentinel

Signed-off-by: drivebyer <wuyangmuc@gmail.com>

* ut for redis cluster

Signed-off-by: drivebyer <wuyangmuc@gmail.com>

* remove useless field

Signed-off-by: drivebyer <wuyangmuc@gmail.com>

---------

Signed-off-by: drivebyer <wuyangmuc@gmail.com>
  • Loading branch information
drivebyer authored Nov 6, 2023
1 parent f7e6a28 commit 520d3a2
Show file tree
Hide file tree
Showing 9 changed files with 1,499 additions and 3 deletions.
1 change: 0 additions & 1 deletion k8sutils/redis-cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ type RedisClusterService struct {
// generateRedisClusterParams generates Redis cluster information
func generateRedisClusterParams(cr *redisv1beta2.RedisCluster, replicas int32, externalConfig *string, params RedisClusterSTS) statefulSetParameters {
res := statefulSetParameters{
Metadata: cr.ObjectMeta,
Replicas: &replicas,
ClusterMode: true,
NodeConfVolume: cr.Spec.Storage.NodeConfVolume,
Expand Down
Loading

0 comments on commit 520d3a2

Please sign in to comment.