• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Warning: This build has drifted.
The coverage report for this pull request build may be inaccurate because its base commit is no longer the HEAD of its target branch.
This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

    • Learn more: For more information on this, see Tracking coverage changes for pull request builds.
    • Fix now: For a quick fix, rebase this PR at GitHub. Your next report should be accurate.
    • Prevent going forward: To avoid this issue with future PRs, see these Recommended CI Configurations.
New Repo Setting:
INCLUDE COVERAGE % WITH WARNINGS ABOUT DRIFTED BUILDS?

Enabling this setting will include a (potentially inaccurate) coverage % with warning messages in status updates for drifted builds.

Adjust setting

elastic / cloudbeat / 16827004459 / 1
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: renovate/main-github.com-hashicorp-nomad-api-digest
DEFAULT BRANCH: main
Ran 08 Aug 2025 09:44AM UTC
Files 228
Run time 268min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Aug 2025 09:20AM UTC coverage: 76.127% (+0.04%) from 76.084%
16827004459.1

Pull #3512

github

orestisfl
NewLeaderElector: Remove nil k8s client check

Pulling this change out from my work on #3442 to simplify the PR.

There are two points that call NewLeaderElector: `benchmark/k8s.go` and
`benchmark/eks.go`. Both provide the `kubeClient` argument that is
received by `ClientProvider.GetClient`. Diggining in `GetClient`, it
ultimately comes from `kubernetes.GetKubernetesClient()` which only
returns a `nil` client when `err != nil` which means that
`NewLeaderElector` can never receive a nil client.

Removes the `DefaultUniqueManager` and simplifies the leader election logic.
The `NewLeaderElector` function will now always return a
`LeaderelectionManager` and will not fall back to a default manager.
Pull Request #3512: NewLeaderElector: Remove nil k8s client check

9471 of 12441 relevant lines covered (76.13%)

16.61 hits per line

Source Files on job 16827004459.1
  • Tree
  • List 228
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16827004459
  • 2ef6ac6e on github
  • Prev Job for on leader-elector-no-error (#16751400966.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc