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

camilamacedo86 / kubebuilder / 11035844586
82%
master: 74%

Build:
Build:
LAST BUILD BRANCH: dev-install
DEFAULT BRANCH: master
Ran 25 Sep 2024 03:11PM 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

25 Sep 2024 03:05PM UTC coverage: 82.116%. Remained the same
11035844586

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.

2282 of 2779 relevant lines covered (82.12%)

15.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11035844586.1 25 Sep 2024 03:11PM UTC 0
82.12
GitHub Action Run
Source Files on build 11035844586
Detailed source file information is not available for this build.
  • Back to Repo
  • 0abd1a8c on github
  • Prev Build on webhooks-path-change (#11035749575)
  • 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