-
Notifications
You must be signed in to change notification settings - Fork 48
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
🌱 Controller-runtime v0.19.0 & Controller-tools v0.16.1 #675
🌱 Controller-runtime v0.19.0 & Controller-tools v0.16.1 #675
Conversation
@sbueringer , it's failing here when running
It works once I upgrade controller-tools to v0.16. Does controller-runtime v0.19.0 somehow force a dependency on controller-tools v0.16+? |
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.
I tried to cross references a bunch of randomly references roles to make sure they were ported correctly. Seems so.
LGTM.
It's not controller-runtime that does it, it's k8s.io/api v0.31.0 (xref: kubernetes-sigs/controller-tools#1000) |
lgtm +/- the linter findings |
We diff'ed all our roles in Cluster API when making the change in controller-gen and we have a lot :) (just for some additional confidence) |
aef8004
to
1322631
Compare
This patch updates VM Operator to Controller-Runtime v0.19.0 and Controller-Tools v0.16.1 as it is required to work with the new k8s.io dependency pulled in by Controller-Runtime. This patch also addresses a bunch of linting issues brought to light by stale linting caches on developer systems and on GitHub actions where part of the cache key is the sum of the go.mod file. Since the module file changed, it ran with a clean cache, revelealing the issues. Finally, this patch updates a few tests to set conditions' field LastTransitionTime to a non-empty value since that is now a required field.
1322631
to
4ebacd1
Compare
Minimum allowed line rate is |
What does this PR do, and why is it needed?
This patch updates VM Operator to Controller-Runtime v0.19.0 and Controller-Tools v0.16.1.
Please note that this change apparently requires updating to controller-tools v0.16 as well, or else manifest generation fails per #675 (comment). To the VM Op team, please note one aspect of controller-tools v0.16 is deduplicating RBAC per kubernetes-sigs/controller-tools#937, hence the major diff to our
role.yaml
file.Which issue(s) is/are addressed by this PR? (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes
NA
Are there any special notes for your reviewer:
cc @sbueringer
Please add a release note if necessary: