Enable kubebuilder autoupdate plugin via github workflow#648
Conversation
WalkthroughA new GitHub Actions workflow is added to automatically update the Kubebuilder project scaffold, triggered manually or weekly on Tuesdays. The autoupdate plugin is enabled in the PROJECT configuration file. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In @.github/workflows/auto_update.yml:
- Around line 44-49: Replace the unpinned "Install Kubebuilder" step to download
a specific Kubebuilder release matching the PROJECT cliVersion (e.g., 4.11.1)
and verify its checksum before installing: add a shell variable for the pinned
version (from PROJECT), download the corresponding kubebuilder tarball and its
SHA256SUM (or .sha256) from the official release URL, verify the checksum with
sha256sum (or similar) and exit on mismatch, then extract/move the binary and
run kubebuilder version; update the step that currently uses "latest" and the
kubebuilder installation flow so it fails fast on checksum verification and uses
the pinned version variable.
🧹 Nitpick comments (1)
.github/workflows/auto_update.yml (1)
38-41: Consider pinning Go to the repo’s supported version for reproducibility.
Usingstablecan change behavior when new Go versions are released. Aligning withgo.modimproves determinism.♻️ Example pin
- name: Set up Go uses: actions/setup-go@v5 with: - go-version: stable + go-version-file: go.mod
0649643 to
54ac049
Compare
kubebuilder autoupdate plugin via github workflow
Proposed Changes
Enables kubebuilder autoupdate plugin and github workflow
Fixes #647
Summary by CodeRabbit
Release Notes