feat: Added redis-role selector for consistent access to 'master' or 'slave' #785
11.42% of diff hit (target 35.20%)
View this Pull Request on Codecov
11.42% of diff hit (target 35.20%)
Annotations
Check warning on line 103 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L103
Added line #L103 was not covered by tests
Check warning on line 108 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L106-L108
Added lines #L106 - L108 were not covered by tests
Check warning on line 113 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L113
Added line #L113 was not covered by tests
Check warning on line 117 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L117
Added line #L117 was not covered by tests
Check warning on line 120 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L120
Added line #L120 was not covered by tests
Check warning on line 122 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L122
Added line #L122 was not covered by tests
Check warning on line 124 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L124
Added line #L124 was not covered by tests
Check warning on line 130 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L126-L130
Added lines #L126 - L130 were not covered by tests
Check warning on line 132 in controllers/rediscluster_controller.go
codecov / codecov/patch
controllers/rediscluster_controller.go#L132
Added line #L132 was not covered by tests
Check warning on line 89 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L85-L89
Added lines #L85 - L89 were not covered by tests
Check warning on line 92 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L91-L92
Added lines #L91 - L92 were not covered by tests
Check warning on line 95 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L95
Added line #L95 was not covered by tests
Check warning on line 108 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L107-L108
Added lines #L107 - L108 were not covered by tests
Check warning on line 110 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L110
Added line #L110 was not covered by tests
Check warning on line 112 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L112
Added line #L112 was not covered by tests
Check warning on line 115 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L114-L115
Added lines #L114 - L115 were not covered by tests
Check warning on line 121 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L119-L121
Added lines #L119 - L121 were not covered by tests
Check warning on line 123 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L123
Added line #L123 was not covered by tests
Check warning on line 127 in controllers/redisreplication_controller.go
codecov / codecov/patch
controllers/redisreplication_controller.go#L126-L127
Added lines #L126 - L127 were not covered by tests
Check warning on line 36 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L35-L36
Added lines #L35 - L36 were not covered by tests
Check warning on line 59 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L57-L59
Added lines #L57 - L59 were not covered by tests
Check warning on line 63 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L61-L63
Added lines #L61 - L63 were not covered by tests
Check warning on line 238 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L233-L238
Added lines #L233 - L238 were not covered by tests
Check warning on line 241 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L241
Added line #L241 was not covered by tests
Check warning on line 246 in k8sutils/redis-replication.go
codecov / codecov/patch
k8sutils/redis-replication.go#L243-L246
Added lines #L243 - L246 were not covered by tests