-
Notifications
You must be signed in to change notification settings - Fork 1.8k
pkg/ansible,pkg/scaffold/ansible; enables leader election for ansible operators #904
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
pkg/ansible,pkg/scaffold/ansible; enables leader election for ansible operators #904
Conversation
3586924
to
b05c0cb
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.
LGTM
Based on #920, I need to remove the readiness parts of this PR. |
b05c0cb
to
14a56f2
Compare
I removed the readiness probe, so this is good to go. |
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.
Worried that this is actually on always and not on by default. I don't see a way to turn of the lock is that correct?
Correct. That is also currently the case for go-based operators. We don't have a way to turn it off at runtime. It would be a reasonable thing to add as a command line arg or similar, but that goes back to the discussion we're having on #889 about how to change runtime settings. |
14a56f2
to
1fc0b47
Compare
1fc0b47
to
d43cc4f
Compare
Fix test-cluster and add some debug statements
… operators (operator-framework#904) * pkg/ansible,pkg/scaffold/ansible; enables leader election for ansible operators * Fix test-cluster and add some debug statements
Leader election has been enabled for a while for go-based operators. This uses the same approach and very similar code.