-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
This issue tracks the changes planned for the next major Kubebuilder release 4.12.0and asks the community to review them before we cut the release.
Note: Anything merged into master before the release is cut will also be included.
Please comment if:
- you find any issue in the listed changes, or
- something important is missing and should be part of this release.
Thank you for the help! π
PS.: To help test, please pull the master branch locally and run:
make install
----------- Following the draft for the next release 4.12.0 -------------------------
π Keep Your Scaffold Updated
The migration guide covers upgrading from any version to the latest, including AI-assisted helpers/commands for legacy scaffolds that may require manual steps. For the smoothest path, enable the AutoUpdate Plugin (uses GitHub Actions)) or run kubebuilder alpha update locallyβboth use the same update logic. The other options are primarily for older projects missing cliVersion in the PROJECT file as a one-time step to reach a supported version; after that, you can rely on these workflows for ongoing updates.
β¨ Upgrades
- (go/v4): upgrade golangci-lint from
v2.7.2tov2.8.1. (β¨ (go/v4): upgrade golangci-lint from v2.7.2 to v2.8.0Β #5403, β¨ (kustomize/v2) Upgrade kustomize from5.8.0to5.8.1Β #5481) - (kustomize/v2): Upgrade kustomize from
5.7.1to5.8.0. (β¨ (kustomize/v2): Upgrade kustomize from5.7.1to5.8.0Β #5412) - (go/v4): Upgrade certmanager from
v1.19.2tov1.19.3. (β¨ Upgrade certmanager from v1.19.2 to v1.19.3Β #5431) - (go/v4): Upgrade controller-tools from
v0.20.0tov0.20.1(β¨ chore(go/v4): Upgrade controller-tools from v0.20.0 to v0.20.1Β #5475)
β¨ New features
- (helm/v2-alpha): Polish
Chart.yamlmetadata. (β¨ (helm/v2-alpha): polish Chart.yaml metadataΒ #5414) - (helm/v2-alpha): Add
Notes.txt. (β¨ (helm/v2-alpha): Add Notes.txtΒ #5392) - (helm/v2-alpha): Add Makefile targets for Helm Development. (β¨ (helm/v2-alpha): Add Makefile targets for Helm DevelopmentΒ #5442,β¨ feat(helm/v2-alpha): Add install-helm target and upgrade to Helm 4Β #5468)
- (go/v4): Add autocomplete support in
.devcontainer/post-install.shand enhance script. (β¨ (go/v4): Add autocomplete support in .devcontainer/post-install.shΒ #5394, β¨(go/v4): enhance devcontainer post-install scriptΒ #5435) - (go/v4): Add custom k8s linter for logs to promote better observability. (β¨ (go/v4): Add custom k8s linter for logs to promote better observabilityΒ #5396)
- (go/v4): Now, users can scaffold projects which are namespace-scoped managers by using the flag
--namespaced. The flag is valid for init and edit subcommands (β¨ (go/v4): Add --namespaced flag for namespace-scoped managersΒ #5411, β¨ (go/v4): Add webhook scope mismatch warning for namespace-scoped modeΒ #5482, π (go/v4): preserve existing PROJECT values for unset edit flagsΒ #5480) - (go/v4): add
--multigroupflag to init subcommand. Now you can initialize a project with this layout (β¨ (go/v4): add --multigroup flag to init commandΒ #5440) - (CLI): Add short description to tab completion in bash . (β¨ feat(cli): add short description to tab completion in bashΒ #5408)
- (alpha/update): Add the flag
--merge-messageand flag--conflict-messageto allow customise commit messages. (β¨ (alpha/update): add flags for custom commit messagesΒ #5429, β¨ refactor(alpha/update): shorten commit message flag namesΒ #5479)
π Bug fixes
- (go/v4): Follow Kubernetes logging conventions. (π (go/v4): Follow Kubernetes logging conventionsΒ #5406)
- (helm/v2-alpha): wrap webhook resources with
.Values.webhook.enableconditional. (π (helm/v2-alpha): wrap webhook resources with .Values.webhook.enable conditionalΒ #5413) - (helm/v2-alpha): Fix chart generation and template rendering issues. (π (helm/v2-alpha): Fix chart generation and template rendering issuesΒ #5422)
- (helm/v2-alpha): Support custom container names and fix templating bugs (π (helm/v2-alpha): Support custom container names and fix templating bugsΒ #5463)
- (helm/v2-alpha): Fix crd.keep to correctly add the helm.sh/resource-policy: keep annotation to generated CRDs (π (helm/v2-alpha): Fix crd.keep to correctly add the helm.sh/resource-policy: keep annotation to generated CRDsΒ #5472)
- (CLI): alpha generate/update now respect custom project name. (π fix(alpha): respect custom project name in generate commandΒ #5426)
- (alpha/update): update commit messages with conventional commit format. (π (alpha/update): update commit messages with conventional commit formatΒ #5428)
- (helm/v2-alpha): remove deprecated
helm/v1-alphaplugin entry from PROJECT file whenhelm/v2-alphais used. (π (helm/v2-alpha): remove deprecated v1-alpha plugin entry from PROJECT fileΒ #5436) - (go/v4): Make e2e tests more robust to avoid flakes (π fix(go/v4): Add retry to flaky metrics E2E testΒ #5437, π fix(go/v4): Add more checks for webhooks in e2e tests to avoid flakesΒ #5450)
- (CLI/API): FIx issues when
--helpcommand was used with--pluginsand improve output to show the available help plugins per subcommand. (π fix(CLI/API) prevent --help from being validated as plugin nameΒ #5448) - (API): move hack/docs/utils to hack/docs/internal. (π fix(api): move hack/docs/utils to hack/docs/internalΒ #5407)
π Thanks to all contributors!
What's Changed ( Full Changelog )
- β¨ (go/v4): upgrade golangci-lint from v2.7.2 to v2.8.0 by @camilamacedo86 in β¨ (go/v4): upgrade golangci-lint from v2.7.2 to v2.8.0Β #5403
- π (docs): Clarify PR title and commit message format guidelines by @camilamacedo86 in π (docs): Clarify PR title and commit message format guidelinesΒ #5393
- β¨ (go/v4): Add autocomplete support in .devcontainer/post-install.sh by @camilamacedo86 in β¨ (go/v4): Add autocomplete support in .devcontainer/post-install.shΒ #5394
- π fix(api): move hack/docs/utils to hack/docs/internal by @vitorfloriano in π fix(api): move hack/docs/utils to hack/docs/internalΒ #5407
- π docs(externalPluginSample): Improve external plugin sample with tests and validation by @camilamacedo86 in π docs(externalPluginSample): Improve external plugin sample with tests and validationΒ #5398
- β¨ feat(cli): add short description to tab completion in bash by @vitorfloriano in β¨ feat(cli): add short description to tab completion in bashΒ #5408
- π (go/v4): Follow Kubernetes logging conventions by @camilamacedo86 in π (go/v4): Follow Kubernetes logging conventionsΒ #5406
- π Add webhook bootstrap problem guide and warning by @camilamacedo86 in π Add webhook bootstrap problem guide and warningΒ #5395
- β¨ (go/v4): Add custom k8s linter for logs to promote better observability by @camilamacedo86 in β¨ (go/v4): Add custom k8s linter for logs to promote better observabilityΒ #5396
- π± (agents.md): enhance the AI instructions for Kubebuilder logging by @camilamacedo86 in π± (agents.md): enhance the AI instructions for Kubebuilder loggingΒ #5410
- β¨ (kustomize/v2): Upgrade kustomize from
5.7.1to5.8.0by @camilamacedo86 in β¨ (kustomize/v2): Upgrade kustomize from5.7.1to5.8.0Β #5412 - π (helm/v2-alpha): wrap webhook resources with .Values.webhook.enable conditional by @camilamacedo86 in π (helm/v2-alpha): wrap webhook resources with .Values.webhook.enable conditionalΒ #5413
- π Bump github.com/onsi/ginkgo/v2 from 2.27.5 to 2.28.1 in /docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1 by @dependabot[bot] in π Bump github.com/onsi/ginkgo/v2 from 2.27.5 to 2.28.1 in /docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1Β #5420
- π Bump github.com/onsi/gomega from 1.39.0 to 1.39.1 in /docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1 by @dependabot[bot] in π Bump github.com/onsi/gomega from 1.39.0 to 1.39.1 in /docs/book/src/simple-external-plugin-tutorial/testdata/sampleexternalplugin/v1Β #5418
- π± Bump github.com/onsi/gomega from 1.39.0 to 1.39.1 by @dependabot[bot] in π± Bump github.com/onsi/gomega from 1.39.0 to 1.39.1Β #5417
- π± Bump github.com/onsi/ginkgo/v2 from 2.27.5 to 2.28.1 by @dependabot[bot] in π± Bump github.com/onsi/ginkgo/v2 from 2.27.5 to 2.28.1Β #5419
- π (docs/infra): Update mdBook version to v0.5.2 by @ottnorml in π (docs/infra): Update mdBook version to v0.5.2Β #5421
- π CLI release version): Preserve clean version tags in GoReleaser builds by @camilamacedo86 in π CLI release version): Preserve clean version tags in GoReleaser buildsΒ #5424
- π (helm/v2-alpha): Fix chart generation and template rendering issues by @camilamacedo86 in π (helm/v2-alpha): Fix chart generation and template rendering issuesΒ #5422
- π fix(alpha): respect custom project name in generate command by @camilamacedo86 in π fix(alpha): respect custom project name in generate commandΒ #5426
- π (alpha/update): update commit messages with conventional commit format by @camilamacedo86 in π (alpha/update): update commit messages with conventional commit formatΒ #5428
- π fix(CLI): Fix logs to follow best practices by @camilamacedo86 in π fix(CLI): Fix logs to follow best practicesΒ #5409
- π± Fix lint issue - size of message by @camilamacedo86 in π± Fix lint issue - size of messageΒ #5432
- β¨ Upgrade certmanager from v1.19.2 to v1.19.3 by @camilamacedo86 in β¨ Upgrade certmanager from v1.19.2 to v1.19.3Β #5431
- β¨ (alpha/update): add flags for custom commit messages by @camilamacedo86 in β¨ (alpha/update): add flags for custom commit messagesΒ #5429
- π± test(e2e): centralize test helpers and optimize test execution by @camilamacedo86 in π± test(e2e): centralize test helpers and optimize test executionΒ #5427
- β¨ (helm/v2-alpha): polish Chart.yaml metadata by @camilamacedo86 in β¨ (helm/v2-alpha): polish Chart.yaml metadataΒ #5414
- β¨ (helm/v2-alpha): Add Notes.txt by @camilamacedo86 in β¨ (helm/v2-alpha): Add Notes.txtΒ #5392
- π (helm/v2-alpha): remove deprecated v1-alpha plugin entry from PROJECT file by @camilamacedo86 in π (helm/v2-alpha): remove deprecated v1-alpha plugin entry from PROJECT fileΒ #5436
- π fix(go/v4): Add retry to flaky metrics E2E test by @camilamacedo86 in π fix(go/v4): Add retry to flaky metrics E2E testΒ #5437
- β¨(go/v4): enhance devcontainer post-install script by @camilamacedo86 in β¨(go/v4): enhance devcontainer post-install scriptΒ #5435
- π : remove misleading comment from install script by @orangecms in π : remove misleading comment from install scriptΒ #5439
- β¨ (go/v4): Add --namespaced flag for namespace-scoped managers by @camilamacedo86 in β¨ (go/v4): Add --namespaced flag for namespace-scoped managersΒ #5411
- π± (e2e/docs): Update certmanager to v1.19.3 and prometheus to v0.85.0 by @camilamacedo86 in π± (e2e/docs): Update certmanager to v1.19.3 and prometheus to v0.85.0Β #5441
- π fix(CLI/API) prevent --help from being validated as plugin name by @camilamacedo86 in π fix(CLI/API) prevent --help from being validated as plugin nameΒ #5448
- π fix(go/v4): Add more checks for webhooks in e2e tests to avoid flakes by @camilamacedo86 in π fix(go/v4): Add more checks for webhooks in e2e tests to avoid flakesΒ #5450
- π± fix(e2e): consolidate test suites to reduce execution time by @camilamacedo86 in π± fix(e2e): consolidate test suites to reduce execution timeΒ #5454
- π docs: add note on limitations to CRD validation markers reference by @orangecms in π docs: add note on limitations to CRD validation markers referenceΒ #5438
- π± docs/book: fix the install script by @orangecms in π± docs/book: fix the install scriptΒ #5455
- β¨ (helm/v2-alpha): Add Makefile targets for Helm Development by @camilamacedo86 in β¨ (helm/v2-alpha): Add Makefile targets for Helm DevelopmentΒ #5442
- π± Bump golang.org/x/tools from 0.41.0 to 0.42.0 by @dependabot[bot] in π± Bump golang.org/x/tools from 0.41.0 to 0.42.0Β #5460
- β¨ (helm/v2-alpha): Add Helm chart tests and call in the GitHub action to validate the chart by @camilamacedo86 in β¨ (helm/v2-alpha): Add Helm chart tests and call in the GitHub action to validate the chartΒ #5415
- π CONTRIBUTING: reference mdBook's advanced Markdown format by @orangecms in π CONTRIBUTING: reference mdBook's advanced Markdown formatΒ #5464
- π (helm/v2-alpha): Support custom container names and fix templating bugs by @AlirezaPourchali in π (helm/v2-alpha): Support custom container names and fix templating bugsΒ #5463
- π± Bump k8s.io/apimachinery from 0.35.0 to 0.35.1 by @dependabot[bot] in π± Bump k8s.io/apimachinery from 0.35.0 to 0.35.1Β #5467
- β¨ (go/v4): add --multigroup flag to init command by @camilamacedo86 in β¨ (go/v4): add --multigroup flag to init commandΒ #5440
- π± Update external plugin sample Go deps by @camilamacedo86 in π± Update external plugin sample Go depsΒ #5469
- π± refactor(kustomize/v2): follow Go logging conventions for webhook warning by @camilamacedo86 in π± refactor(kustomize/v2): follow Go logging conventions for webhook warningΒ #5470
- β¨ feat(helm/v2-alpha): Add install-helm target and upgrade to Helm 4 by @camilamacedo86 in β¨ feat(helm/v2-alpha): Add install-helm target and upgrade to Helm 4Β #5468
- π (helm/v2-alpha): Fix crd.keep to correctly add the helm.sh/resource-policy: keep annotation to generated CRDs by @asergeant01 in π (helm/v2-alpha): Fix crd.keep to correctly add the helm.sh/resource-policy: keep annotation to generated CRDsΒ #5472
- π fix(helm/v2-alpha): remove issues to pre-load image by @camilamacedo86 in π fix(helm/v2-alpha): remove issues to pre-load imageΒ #5477
- β¨ chore(go/v4): Upgrade controller-tools from v0.20.0 to v0.20.1 by @camilamacedo86 in β¨ chore(go/v4): Upgrade controller-tools from v0.20.0 to v0.20.1Β #5475
β οΈ (helm/v2-alpha): remove helm test added (reverts pre-release addition to be safe) by @camilamacedo86 in β οΈ (helm/v2-alpha): remove helm test added (reverts pre-release addition to be safe)Β #5478- β¨ refactor(alpha/update): shorten commit message flag names by @camilamacedo86 in β¨ refactor(alpha/update): shorten commit message flag namesΒ #5479
New Contributors
- @ottnorml made their first contribution in π (docs/infra): Update mdBook version to v0.5.2Β #5421
- @orangecms made their first contribution in π : remove misleading comment from install scriptΒ #5439
- @AlirezaPourchali made their first contribution in π (helm/v2-alpha): Support custom container names and fix templating bugsΒ #5463
- @asergeant01 made their first contribution in π (helm/v2-alpha): Fix crd.keep to correctly add the helm.sh/resource-policy: keep annotation to generated CRDsΒ #5472
Full Changelog: v4.11.1...master