github kubernetes-sigs/kubebuilder v4.5.0

one day ago

changes since v4.4.0

⚠️ Breaking Changes

  • (go-v4): Upgrade controller-runtime from v0.19.4 to v0.20.0 and add support for Kubernetes 1.32 (#4492). See the controller-runtime release notes to learn more about the breaking changes introduced.

    (Projects using webhooks):
    Controller-runtime removed the deprecated webhook.Validator and webhook.Defaulter interfaces. Additionally, webhooks should no longer reside under the api directory. Kubebuilder projects have not scaffolded webhooks in this directory or used the deprecated interfaces since v4.3.0.

    If you are using these interfaces or the legacy apis directory for webhooks, please refer to the v4.3.0 release notes, which provide guidance on updating your projects to align with the current standards.

    To assist with migration or reduce the burden on users, Kubebuilder has introduced a flag option to allow scaffolding webhooks using the new interfaces in the legacy path. For now, you can scaffold webhooks in the legacy path (under api) by using the command kubebuilder create webhook [OPTIONS] --legacy=true. For reference, you can look at the CronJob Tutorial sample webhooks implementation.

✨ New Features

  • (go-v4): Upgrade controller-gen from v0.17.0 to v0.17.1 (#4493)
  • (go-v4): Upgrade GolangCI Lint from v1.62.2 to v1.63.4 (#4494)
  • (go-v4): e2e tests: upgrade cert-manager version used from v1.16.0 to v1.16.3 (#4497)
  • (go-v4): e2e tests: follow cert-manager org name changes (#4505)

🐛 Bug Fixes

  • (CLI) Ensure minimal golang version 1.23.0 (#4491)
  • (helm/alpha-v1): Fix YAML lint in the ServiceMonitor file (#4502)
  • (alpha generate command): Fix scenario where the output-dir path is not informed; default to the current directory (#4500)
  • (alpha generate command): Allow re-creating projects with webhooks for external-apis (#4501)
  • (go-v4): Use explicit docker.io prefix for Docker Hub images (#4513)

What's Changed

  • 📖 Add helm-plugin to the summary of available plugins by @camilamacedo86 in #4485
  • 🐛 Update golang version to 1.23.0 in init validation logic by @dmvolod in #4491
  • 📖 Bump sigs.k8s.io/kubebuilder/v4 from 4.3.1 to 4.4.0 in /docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1 by @dependabot in #4488
  • ⚠️ Upgrade controller-runtime from v0.19.4 to v0.20.0 and k8s deps from 1.31 to 1.32 by @camilamacedo86 in #4492
  • ✨ Upgrade controller-gen from v0.17.0 to v0.17.1 by @camilamacedo86 in #4493
  • ✨ Upgrade GolangCI Lint from v1.62.2 to v1.63.4 by @camilamacedo86 in #4494
  • ✨ e2e tests: upgrade cert-manager version used from v1.16.0 to v1.16.3 by @camilamacedo86 in #4497
  • 🐛 (helm/alpha-v1): fix yaml lint in the ServiceMonitor file by @camilamacedo86 in #4502
  • 🌱 CLI: Remove unused doc.go by @camilamacedo86 in #4504
  • 🐛 fix: kubebuilder alpha generate command to allow re-create projects with webhooks for external-apis by @camilamacedo86 in #4501
  • ✨ (go/v4): Follow cert-manager org name changes by @zchee in #4505
  • 🌱 (ci): Add GH action to validate generated helm charts for tutorials by @akagami-harsh in #4472
  • 🌱 fix: alpha generate command. If the output-dir path is not informed than it should be the current directory by @camilamacedo86 in #4500
  • 🐛 Use explicit docker.io prefix for Docker Hub images by @pl4nty in #4513

New Contributors

Full Changelog: v4.4.0...v4.5.0

Don't miss a new kubebuilder release

NewReleases is sending notifications on new releases.