Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leadership: check leadership key before exit watch loop #6979

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

add unit test

bdb3f47
Select commit
Loading
Failed to load commit list.
Draft

leadership: check leadership key before exit watch loop #6979

add unit test
bdb3f47
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch succeeded Aug 23, 2023 in 0s

86.95% of diff hit (target 74.51%)

View this Pull Request on Codecov

86.95% of diff hit (target 74.51%)

Annotations

Check warning on line 270 in pkg/election/leadership.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/election/leadership.go#L270

Added line #L270 was not covered by tests

Check warning on line 280 in pkg/election/leadership.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/election/leadership.go#L279-L280

Added lines #L279 - L280 were not covered by tests

Check warning on line 732 in pkg/utils/etcdutil/etcdutil.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/utils/etcdutil/etcdutil.go#L731-L732

Added lines #L731 - L732 were not covered by tests

Check warning on line 762 in pkg/utils/etcdutil/etcdutil.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/utils/etcdutil/etcdutil.go#L761-L762

Added lines #L761 - L762 were not covered by tests