-
Notifications
You must be signed in to change notification settings - Fork 13
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 controller-runtime
, k8s dependencies and switch leader election lock to leases
#186
Conversation
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation, tooling
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation, tooling
case len(namespaces) > 1: | ||
// configure cluster-scoped with MultiNamespacedCacheBuilder | ||
logger.Info("Manager will be watching multiple namespaces", namespaces) | ||
opt.NewCache = func(config *rest.Config, opts cache.Options) (cache.Cache, error) { | ||
opts.Namespaces = namespaces | ||
// https://github.com/kubernetes-sigs/controller-runtime/commit/3e35cab1ea29145d8699259b079633a2b8cfc116 |
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 couldn't associate this change to specific release note but here is the change relevant to below
kubernetes-sigs/controller-runtime@3e35cab
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation, tooling
109b639
to
858a25e
Compare
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation, tooling
858a25e
to
a6b8b08
Compare
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.
This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation, tooling
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #186 +/- ##
==========================================
+ Coverage 63.10% 63.21% +0.10%
==========================================
Files 41 41
Lines 3098 3107 +9
==========================================
+ Hits 1955 1964 +9
- Misses 1023 1024 +1
+ Partials 120 119 -1
Flags with carried forward coverage won't be shown. Click here to find out more. see 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
This pull request contains a valid label.
controller-runtime
to 0.16.0, k8s dependencies to 0.28.xcontroller-runtime
, k8s dependencies and switch to leader election lock to leases
controller-runtime
, k8s dependencies and switch to leader election lock to leases
controller-runtime
, k8s dependencies and switch leader election lock to leases
…tion lock to `leases` (#186) * Checkpoint: build, docker-build, test; controller-runtime 0.15->0.16, k8s 0.27->0.28. * Use controller-runtime 0.16.0 instead of 0.16.6 due to incompatibility with new fake * update CRDs * Make `leases` default leaderElectionResourceLock
What does this PR do?
Notable changes:
controller-runtime
0.15.x -> 0.16.0 - didn't update to latest of 0.16.x asfake
caused test failures.leases
default leader election resource lock, as others are deprecated.0.16.0 release notes here.
kubernetes-sigs/controller-runtime#2407
kubernetes-sigs/controller-runtime#2422
Motivation
What inspired you to submit this pull request?
Additional Notes
Anything else we should know when reviewing?
Describe your test plan
Write there any instructions and details you may have to test your PR.