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

camilamacedo86 / kubebuilder / 10974028539
82%
master: 74%

Build:
Build:
LAST BUILD BRANCH: dev-install
DEFAULT BRANCH: master
Ran 21 Sep 2024 04:32PM UTC
Jobs 1
Files 44
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

21 Sep 2024 04:26PM UTC coverage: 81.773%. Remained the same
10974028539

push

github

camilamacedo86
:warning: (go/v4) decouple webhooks from APIs - Move Webhooks from `api/<version>` or `api/<group>/<version>` to `internal/webhook/<version>` or `internal/webhook/<group>/<version>`

This PR decouples the webhooks from the API, aligning with the recent breaking changes introduced in controller-runtime to ensure that kubebuilder still compatbile with its next release.  Webhooks are now scaffolded under `internal/webhook` to comply with the latest standards.

**Context:**

Controller-runtime deprecated and removed the webhook methods in favor of CustomInterfaces (see [controller-runtime#2641](https://github.com/kubernetes-sigs/controller-runtime/issues/2641)). The motivation for this change is outlined in [controller-runtime#2596](https://github.com/kubernetes-sigs/controller-runtime/issues/2596).

See that the current master branch already reflects these changes, using the CustomInterfaces: [kubebuilder#4060](https://github.com/kubernetes-sigs/kubebuilder/pull/4060).

**Changes:**

- Webhooks are now scaffolded in `internal/webhook/<version>` or `internal/webhook/<group>/<version>`.
- However, to ensure backwards compatibility, a new `--legacy` flag is introduced. Running `kubebuilder create webhook [options] --legacy` will scaffold webhooks in the legacy location for projects that need to retain the old structure. However, users will still to address the breaking changes in the source code by replacing the old methods by the new CustomInterfaces.

2288 of 2798 relevant lines covered (81.77%)

15.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10974028539.1 21 Sep 2024 04:32PM UTC 0
81.77
GitHub Action Run
Source Files on build 10974028539
Detailed source file information is not available for this build.
  • Back to Repo
  • d6f6c346 on github
  • Prev Build on webhooks-path-change (#10956192090)
  • Next Build on webhooks-path-change (#10974991625)
  • Delete
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