• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / kubebuilder / 34118857861
87%

Build:
DEFAULT BRANCH: master
Ran 07 Sep 2026 12:00PM UTC
Jobs 1
Files 103
Run time 1min
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

07 Sep 2026 11:52AM UTC coverage: 87.288% (+0.1%) from 87.193%
34118857861

push

github

web-flow
🐛 fix(go/v4): resolve create webhook target when several share a GVK (#5932)

* fix(go/v4): resolve create webhook target by domain when several share a GVK

create webhook matched a recorded resource by Group, Version and Kind and took
the first hit. When a project records more than one external resource sharing a
GVK under different domains, the webhook was bound to whichever entry the PROJECT
file listed first, and passing --external-api-domain to select another failed
outright.

updateResourceFromConfig now collects every Group/Version/Kind match: a single
match is recovered as before; with several, --external-api-domain selects one,
otherwise the non-external (core/project) entry is used, preferring the project
when a core and project entry collide; it refuses and names the recorded domains
when it still cannot tell which was meant, leaving the PROJECT file unchanged. An
unmatched --external-api-domain is only rejected when no --external-api-path is
given, so a further variant can still be added.

create api is unaffected; it already looks resources up by the full GVK.

* fix(go/v4): address review on ambiguous webhook resource resolution

- clarify --external-api-domain help text (webhook.go, api.go): it is a
  suffix combined with --group, e.g. --group cert-manager
  --external-api-domain io => cert-manager.io
- render an empty recorded domain as <empty> in the resolution error so
  the list is not "(domains: , io)"
- correct the updateResourceFromConfig doc comment: the G/V/K lookup is
  for the multi-match case (not because res carries the project domain);
  describe external/core/project kinds and the resolveDomain dependency
- document in selectNonExternal why there is no --external-api-path escape
  hatch without a domain (a path-only new resource would be stamped with
  the project domain)
- flatten the resolution switch so selectByDomain is not called twice
- strengthen tests: assert domain and webhooks on the untouched entries,
  and as... (continued)

81 of 82 new or added lines in 2 files covered. (98.78%)

8844 of 10132 relevant lines covered (87.29%)

329.39 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
78.99
7.78% pkg/plugins/golang/v4/webhook.go
Jobs
ID Job ID Ran Files Coverage
1 34118857861.1 07 Sep 2026 12:00PM UTC 103
87.29
GitHub Action Run
Source Files on build 34118857861
  • Tree
  • List 103
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e69c5f9f on github
  • Prev Build on master (#34115606086)
  • Next Build on master (#34157906196)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc