Implement index operator logic for read replica rotation #2444
2.08% of diff hit (target 18.83%)
View this Pull Request on Codecov
2.08% of diff hit (target 18.83%)
Annotations
Check warning on line 85 in internal/config/config.go
codecov / codecov/patch
internal/config/config.go#L85
Added line #L85 was not covered by tests
Check warning on line 56 in internal/config/index_operator.go
codecov / codecov/patch
internal/config/index_operator.go#L56
Added line #L56 was not covered by tests
Check warning on line 26 in internal/config/readreplica_rotate.go
codecov / codecov/patch
internal/config/readreplica_rotate.go#L26
Added line #L26 was not covered by tests
Check warning on line 211 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L206-L211
Added lines #L206 - L211 were not covered by tests
Check warning on line 213 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L213
Added line #L213 was not covered by tests
Check warning on line 218 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L215-L218
Added lines #L215 - L218 were not covered by tests
Check warning on line 220 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L220
Added line #L220 was not covered by tests
Check warning on line 225 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L222-L225
Added lines #L222 - L225 were not covered by tests
Check warning on line 227 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L227
Added line #L227 was not covered by tests
Check warning on line 232 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L229-L232
Added lines #L229 - L232 were not covered by tests
Check warning on line 234 in internal/k8s/client/client.go
codecov / codecov/patch
internal/k8s/client/client.go#L234
Added line #L234 was not covered by tests
Check warning on line 73 in internal/k8s/option.go
codecov / codecov/patch
internal/k8s/option.go#L73
Added line #L73 was not covered by tests
Check warning on line 76 in internal/k8s/option.go
codecov / codecov/patch
internal/k8s/option.go#L75-L76
Added lines #L75 - L76 were not covered by tests
Check warning on line 80 in internal/k8s/option.go
codecov / codecov/patch
internal/k8s/option.go#L78-L80
Added lines #L78 - L80 were not covered by tests
Check warning on line 98 in internal/k8s/reconciler.go
codecov / codecov/patch
internal/k8s/reconciler.go#L94-L98
Added lines #L94 - L98 were not covered by tests
Check warning on line 37 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L34-L37
Added lines #L34 - L37 were not covered by tests
Check warning on line 44 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L41-L44
Added lines #L41 - L44 were not covered by tests
Check warning on line 51 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L48-L51
Added lines #L48 - L51 were not covered by tests
Check warning on line 58 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L55-L58
Added lines #L55 - L58 were not covered by tests
Check warning on line 65 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L62-L65
Added lines #L62 - L65 were not covered by tests
Check warning on line 69 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L67-L69
Added lines #L67 - L69 were not covered by tests
Check warning on line 76 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L73-L76
Added lines #L73 - L76 were not covered by tests
Check warning on line 78 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L78
Added line #L78 was not covered by tests
Check warning on line 85 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L82-L85
Added lines #L82 - L85 were not covered by tests
Check warning on line 87 in internal/k8s/v2/pod/option.go
codecov / codecov/patch
internal/k8s/v2/pod/option.go#L87
Added line #L87 was not covered by tests