Skip to content

Refactor rotateIfNeeded function to use label selector for listing de…

Codecov / codecov/patch failed Mar 8, 2024 in 1s

1.08% of diff hit (target 18.71%)

View this Pull Request on Codecov

1.08% of diff hit (target 18.71%)

Annotations

Check warning on line 181 in internal/k8s/client/client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/k8s/client/client.go#L180-L181

Added lines #L180 - L181 were not covered by tests

Check warning on line 155 in internal/k8s/pod/pod.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/k8s/pod/pod.go#L155

Added line #L155 was not covered by tests

Check warning on line 70 in internal/test/mock/k8s/client.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

internal/test/mock/k8s/client.go#L68-L70

Added lines #L68 - L70 were not covered by tests

Check warning on line 164 in pkg/index/job/readreplica/rotate/service/rotator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/job/readreplica/rotate/service/rotator.go#L164

Added line #L164 was not covered by tests

Check warning on line 215 in pkg/index/job/readreplica/rotate/service/rotator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/job/readreplica/rotate/service/rotator.go#L215

Added line #L215 was not covered by tests

Check warning on line 261 in pkg/index/job/readreplica/rotate/service/rotator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/job/readreplica/rotate/service/rotator.go#L261

Added line #L261 was not covered by tests

Check warning on line 299 in pkg/index/job/readreplica/rotate/service/rotator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/job/readreplica/rotate/service/rotator.go#L299

Added line #L299 was not covered by tests

Check warning on line 309 in pkg/index/job/readreplica/rotate/service/rotator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/job/readreplica/rotate/service/rotator.go#L303-L309

Added lines #L303 - L309 were not covered by tests

Check warning on line 104 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L99-L104

Added lines #L99 - L104 were not covered by tests

Check warning on line 149 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L144-L149

Added lines #L144 - L149 were not covered by tests

Check warning on line 175 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L166-L175

Added lines #L166 - L175 were not covered by tests

Check warning on line 181 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L177-L181

Added lines #L177 - L181 were not covered by tests

Check warning on line 206 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L183-L206

Added lines #L183 - L206 were not covered by tests

Check warning on line 211 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L208-L211

Added lines #L208 - L211 were not covered by tests

Check warning on line 217 in pkg/index/operator/service/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/operator.go#L214-L217

Added lines #L214 - L217 were not covered by tests

Check warning on line 38 in pkg/index/operator/service/options.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/options.go#L34-L38

Added lines #L34 - L38 were not covered by tests

Check warning on line 45 in pkg/index/operator/service/options.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/service/options.go#L41-L45

Added lines #L41 - L45 were not covered by tests

Check warning on line 48 in pkg/index/operator/usecase/operator.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/index/operator/usecase/operator.go#L44-L48

Added lines #L44 - L48 were not covered by tests