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 to controller-runtime v0.15.0 #420
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qbarrand The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kmm ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
/test all |
/test all |
/test all |
Remove the logger in the filter types as those functions now get a context. Reimplement the way we read the operator config since the controller-runtime library code for that is deprecated. Upgrade to Kubernetes v1.27.2. Bump other dependencies.
/test all |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 | ||
kind: ControllerManagerConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing apiVersion
and kind
? Doesn't it exists in the new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We unmarshal the data ourselves, so no need for these fields anymore.
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 | ||
kind: ControllerManagerConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing apiVersion
and kind
? Doesn't it exists in the new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We unmarshal the data ourselves, so no need for these fields anymore.
options := ctrl.Options{Scheme: scheme} | ||
|
||
options, err = options.AndFrom(ctrl.ConfigFile().AtPath(configFile)) | ||
cfg, err := config.ParseFile(configFile) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had the new controller-runtime version removed support for parsing option? If not, then why not use its code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm |
Remove the logger in the filter types as those functions now get a context.
Upgrade to Kubernetes v1.27.2.
Bump other dependencies.