chore: upgrade kubernetes dependencies#266
Conversation
Signed-off-by: spencercjh <spencercjh@gmail.com>
There was a problem hiding this comment.
Pull Request Overview
This PR upgrades Kubernetes dependencies from version 0.20.6 to 0.31.0, along with controller-runtime from 0.6.0 to 0.19.4. The changes update API signatures and patterns to align with the newer versions of these dependencies.
- Updated API signatures to use
context.Contextinstead of stop channels - Modified function signatures in controller-runtime to match new type-safe patterns
- Updated import paths that have been reorganized in newer versions
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Upgraded k8s.io dependencies from 0.20.6 to 0.31.0 and controller-runtime from 0.6.0 to 0.19.4 |
| pkg/webhook/pod/mutator.go | Changed decoder field from pointer to value type in admission.Decoder |
| pkg/hookfs/server.go | Updated Start method to accept context.Context instead of stop channel |
| pkg/controller/chaosblade/controller.go | Updated controller methods to accept context.Context parameter and use new Watch API |
| pkg/apis/chaosblade/v1alpha1/zz_generated.openapi.go | Removed autogenerated OpenAPI file |
| pkg/apis/chaosblade/meta/zz_generated.openapi.go | Removed autogenerated OpenAPI file |
| pkg/apis/chaosblade/v1alpha1/register.go | Updated import path for scheme package |
| cmd/manager/main.go | Updated manager creation to use new Cache.Options and webhook.NewServer API |
| cmd/hookfs/main.go | Updated signal handling to use context instead of channel |
| channel/client.go | Updated NewClientFunc signature to match new client.NewClientFunc type |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: spencercjh <spencercjh@gmail.com>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 11 out of 12 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Signed-off-by: spencercjh <spencercjh@gmail.com>
|
I have reverted this merge to avoid affecting version 1.8.0. Please submit a new PR. Thank you! |
No description provided.