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

[FEATURES] Upgrade controller runtime and K8s version #1208

Closed
cheyang opened this issue Nov 27, 2021 · 0 comments · Fixed by #1207
Closed

[FEATURES] Upgrade controller runtime and K8s version #1208

cheyang opened this issue Nov 27, 2021 · 0 comments · Fixed by #1207
Labels
features features

Comments

@cheyang
Copy link
Collaborator

cheyang commented Nov 27, 2021

What feature you'd like to add:

  1. Upgrade K8s to 1.20.10
  2. Upgrade controller-runtime to 0.8.3 and controller-gen to 0.7.0, and adopt the breaking change of them
  • The interface for client.Get, Client.Create, Clident.Update is changed from runtime.Object to client.Object
  • The parameter of function Reconcile is changed from req ctrl.Request to ctx context.Context, req ctrl.Request
  • some test function is deprecated.
  1. Upgrade API version
  • CustomResourceDefinition from apiextensions.k8s.io/vebeta1 to apiextensions.k8s.io/v1
  • CSIDriver from storage.k8s.io/v1beta1 to storage.k8s.io/v1
  • MutatingWebhookConfiguration from admissionregistration.k8s.io/v1beta1 to admissionregistration.k8s.io/v1

Why is this feature needed:

The purpose is to match K8s 1.22 and above. As you know a lot of APIs are removed since 1.22, including CSI, CRD, webhook. We have to upgrade the K8s version, and during the upgrade we found the controller-runtime has to be upgraded also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant