-
Notifications
You must be signed in to change notification settings - Fork 553
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
rbd: use leases for leader election #3011
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.
Could you link to the deprecation notice?
This now imports a Kubernetes package, making the CSi-driver more dependent on that single CO. Not sure this is the preferred solution.
e30e785
to
c04cc78
Compare
This PR is making leases as default leader election kubernetes-sigs/controller-runtime#1773, default from configmap to configmap leases was done with kubernetes-sigs/controller-runtime#1144 https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.7.0 All the kubernetes sidecars are based on the leases based leader election, configmap is deprecated long back.
The whole controller is written using the controller runtime it's only meant for kubernetes and it exists for a long time. This PR is just changing the leader type. |
Pull request has been modified.
/retest ci/centos/mini-e2e-helm/k8s-1.22 |
/retest ci/centos/mini-e2e/k8s-1.21 |
@Mergifyio refresh |
✅ Pull request refreshed |
/retest ci/centos/mini-e2e/k8s-1.21 |
@Mergifyio refresh |
✅ Pull request refreshed |
/retest ci/centos/mini-e2e/k8s-1.21 |
@Mergifyio refresh |
✅ Pull request refreshed |
/retest ci/centos/mini-e2e/k8s-1.21 |
@Mergifyio refresh |
✅ Pull request refreshed |
/retest ci/centos/mini-e2e/k8s-1.21 |
@Mergifyio refresh |
✅ Pull request refreshed |
use leases for leader election instead of the deprecated configmap based leader election. This PR is making leases as default leader election refer https://github.com/kubernetes-sigs/ controller-runtime/pull/1773, default from configmap to configmap leases was done with https://github.com/kubernetes-sigs/ controller-runtime/pull/1144. Release notes https://github.com/kubernetes-sigs/ controller-runtime/releases/tag/v0.7.0 Signed-off-by: Madhu Rajanna <[email protected]>
c04cc78
to
823cbfc
Compare
/retest ci/centos/mini-e2e/k8s-1.23 |
/retest ci/centos/upgrade-tests-rbd |
@Mergifyio refresh |
✅ Pull request refreshed |
/retest ci/centos/mini-e2e/k8s-1.23 |
@Mergifyio refresh |
✅ Pull request refreshed |
@Mergifyio refresh |
✅ Pull request refreshed |
use leases for leader election instead of the deprecated configmap based leader election.
Signed-off-by: Madhu Rajanna [email protected]