Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Kubernetes and controller-runtime dependencies #516

Merged
merged 8 commits into from
Jan 3, 2024

Conversation

GuptaManan100
Copy link
Collaborator

@GuptaManan100 GuptaManan100 commented Dec 28, 2023

Description

This PR updates the k8s and the controller-runtime dependencies for the vitess-operator. A lot of build issues occurred on upgrading due to the breaking changes made. Most significantly there were 2 changes -

  1. In version 16 of controller-runtime, configuration of cache filtering has changed - ⚠️ Allow configuring more granular cache filtering kubernetes-sigs/controller-runtime#2421. This meant that the filtering of cache based on the namespaces had to change in the operator.

  2. In version 15 of controller-runtime, context was added to EventHandlers (⚠ Add context to EventHandler(s) kubernetes-sigs/controller-runtime#2139), removal of dependency injection by changing structs to being internal and having functions instead (⚠️ Refactor source/handler/predicate packages to remove dep injection kubernetes-sigs/controller-runtime#2120).

Tests with different versions of kind image -

Test kindest/node:v1.25.9 kindest/node:v1.26.0 kindest/node:v1.27.0 kindest/node:v1.28.0
vtorc_vtadmin_test
backup_restore_test
upgrade_test

Related Issues

Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
Signed-off-by: Manan Gupta <manan@planetscale.com>
@frouioui
Copy link
Member

frouioui commented Jan 3, 2024

Looks good to me, thank you @GuptaManan100!

@frouioui frouioui merged commit 52c8ecf into main Jan 3, 2024
9 checks passed
@frouioui frouioui deleted the upgrade-kubernetes-version branch January 3, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Supported Kubernetes Versions going EOL
3 participants