-
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
Leader election conflict with csi-resizer bug fix #14
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.
lgtm
Also, can we put "Closes" in the PR description in front of the issues in the |
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
Signed-off-by: torredil <[email protected]>
/lgtm |
/approve |
Issue #, if available:
Description of changes:
This PR introduces modifications to ensure that the
volumemodifier
container sidecar initializes the controller service only if it is in the same pod as thecsi-resizer
leader. This determination is made by monitoring the leases object. If the controller service is running but the pod is not the leader, the controller service will be stopped.Pod name will be supplied via downward API:
Additionally, the following clusterrole will be necessary:
Testing:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.