build(deps): update Go dependencies to latest versions
build(deps): update Go dependencies to latest versions - Update Go version from 1.23.0 to 1.24.0 - Update cert-manager from v1.9.1 to v1.18.2 - Update Kubernetes dependencies to v0.32.0 - Update controller-runtime to v0.19.0 - Update various other dependencies to latest versions
Summary by CodeRabbit
- Chores
- Upgraded Go to 1.24 and broadly updated dependencies (Kubernetes libraries, Gateway API, YAML v3, logging/testing/tooling) for improved compatibility and support.
- Bug Fixes
- Aligned persistent volume claim resource handling to current Kubernetes types, improving storage provisioning compatibility.
- Minor stability improvements in failover and sentinel routines.
- Refactor
- Adopted typed work queues in controller event handling for clearer, safer request processing.
Walkthrough
Bumps Go toolchain and numerous dependencies (notably Kubernetes and controller-runtime). Updates PVC spec to use VolumeResourceRequirements in two places. Adjusts controller watch CreateFunc signatures to typed rate-limiting queues. Adds explicit discard of slices.IndexFunc return values in three ops files. No functional control-flow changes.
Changes
| Cohort / File(s) | Summary of Changes |
|---|---|
Dependencies and toolinggo.mod |
Updated Go to 1.24.0 and upgraded a wide range of direct and indirect dependencies (Kubernetes libs, controller-runtime v0.19.0, testing/logging libs, gateway-api, yaml v3, etc.). No source code edits in this file beyond version bumps. |
PVC Resources type migrationinternal/builder/clusterbuilder/statefulset.go, internal/controller/middleware/redis/redisfailover.go |
Switched PersistentVolumeClaimSpec.Resources from corev1.ResourceRequirements to corev1.VolumeResourceRequirements. No logic changes; Requests and related fields remain the same. |
Typed workqueue in controller watchesinternal/controller/middleware/redis_controller.go |
Updated CreateFunc callback signatures to use workqueue.TypedRateLimitingInterface[reconcile.Request] instead of workqueue.RateLimitingInterface. Enqueue logic unchanged. |
Explicitly discarding IndexFunc resultinternal/ops/failover/actor/actor_patch_labels.go, internal/ops/failover/engine.go, internal/ops/sentinel/actor/actor_heal_pod.go |
Assigned slices.IndexFunc return value to blank identifier (_) to satisfy compiler; side-effect search callbacks unchanged. |
Sequence Diagram(s)
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
I thump my paw on versioned ground,
New go.mod carrots all around. 🥕
PVCs wear fresher threads,
Typed queues guide the recon threads,
While IndexFunc hops, result ignored—
Compile-time peace is thus restored.
Onward, I bound—dependencies adorned!
[!WARNING] There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
🔧 golangci-lint (2.2.2)
Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/product/migration-guide for migration instructions The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/product/migration-guide for migration instructions
✨ Finishing Touches
- [ ] 📝 Generate Docstrings
🧪 Generate unit tests
- [ ] Create PR with unit tests
- [ ] Post copyable unit tests in a comment
- [ ] Commit unit tests in branch
dev
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.
🪧 Tips
Chat
There are 3 ways to chat with CodeRabbit:
- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
I pushed a fix in commit <commit_id>, please review it.Open a follow-up GitHub issue for this discussion.
- Files and specific lines of code (under the "Files changed" tab): Tag
@coderabbitaiin a new review comment at the desired location with your query. - PR comments: Tag
@coderabbitaiin a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
Support
Need help? Create a ticket on our support page for assistance with any issues or questions.
CodeRabbit Commands (Invoked using PR/Issue comments)
Type @coderabbitai help to get the list of available commands.
Other keywords and placeholders
- Add
@coderabbitai ignoreor@coderabbit ignoreanywhere in the PR description to prevent this PR from being reviewed. - Add
@coderabbitai summaryto generate the high-level summary at a specific location in the PR description. - Add
@coderabbitaianywhere in the PR title to generate the title automatically.
CodeRabbit Configuration File (.coderabbit.yaml)
- You can programmatically configure CodeRabbit by adding a
.coderabbit.yamlfile to the root of your repository. - Please see the configuration documentation for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
Status, Documentation and Community
- Visit our Status Page to check the current availability of CodeRabbit.
- Visit our Documentation for detailed information on how to use CodeRabbit.
- Join our Discord Community to get help, request features, and share feedback.
- Follow us on X/Twitter for updates and announcements.