Skip to content

Generate k8s client only once

Codecov / codecov/patch failed Jan 13, 2024 in 0s

0.00% of diff hit (target 28.80%)

View this Pull Request on Codecov

0.00% of diff hit (target 28.80%)

Annotations

Check warning on line 68 in controllers/redis_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/redis_controller.go#L68

Added line #L68 was not covered by tests

Check warning on line 120 in controllers/rediscluster_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/rediscluster_controller.go#L120

Added line #L120 was not covered by tests

Check warning on line 125 in controllers/rediscluster_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/rediscluster_controller.go#L125

Added line #L125 was not covered by tests

Check warning on line 154 in controllers/rediscluster_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/rediscluster_controller.go#L154

Added line #L154 was not covered by tests

Check warning on line 159 in controllers/rediscluster_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/rediscluster_controller.go#L159

Added line #L159 was not covered by tests

Check warning on line 59 in controllers/redisreplication_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/redisreplication_controller.go#L59

Added line #L59 was not covered by tests

Check warning on line 58 in controllers/redissentinel_controller.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

controllers/redissentinel_controller.go#L58

Added line #L58 was not covered by tests

Check warning on line 209 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L209

Added line #L209 was not covered by tests

Check warning on line 223 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L223

Added line #L223 was not covered by tests

Check warning on line 227 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L227

Added line #L227 was not covered by tests

Check warning on line 241 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L241

Added line #L241 was not covered by tests

Check warning on line 245 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L245

Added line #L245 was not covered by tests

Check warning on line 249 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L249

Added line #L249 was not covered by tests

Check warning on line 253 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L253

Added line #L253 was not covered by tests

Check warning on line 257 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L257

Added line #L257 was not covered by tests

Check warning on line 265 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L265

Added line #L265 was not covered by tests

Check warning on line 279 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L279

Added line #L279 was not covered by tests

Check warning on line 289 in k8sutils/redis-cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-cluster.go#L289

Added line #L289 was not covered by tests

Check warning on line 54 in k8sutils/redis-replication.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-replication.go#L54

Added line #L54 was not covered by tests

Check warning on line 67 in k8sutils/redis-replication.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-replication.go#L67

Added line #L67 was not covered by tests

Check warning on line 41 in k8sutils/redis-sentinel.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-sentinel.go#L41

Added line #L41 was not covered by tests

Check warning on line 54 in k8sutils/redis-sentinel.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-sentinel.go#L54

Added line #L54 was not covered by tests

Check warning on line 68 in k8sutils/redis-sentinel.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-sentinel.go#L68

Added line #L68 was not covered by tests

Check warning on line 81 in k8sutils/redis-sentinel.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-sentinel.go#L81

Added line #L81 was not covered by tests

Check warning on line 58 in k8sutils/redis-standalone.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

k8sutils/redis-standalone.go#L58

Added line #L58 was not covered by tests