-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add e2e test for leader election #598
Labels
area/testing
Issue related to testing the operator-sdk and subcomponents
Comments
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 9, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 9, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 9, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 19, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 19, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 20, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
mhrivnak
added a commit
to mhrivnak/operator-sdk
that referenced
this issue
Nov 20, 2018
Adds a readiness probe by default that reflects whether a pod is the leader. fixes operator-framework#598
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
re #530
@hasbro17 commented:
That sounds reasonable. I like the idea of the readiness probe. We can also verify that the pod claiming to be ready matches the owner reference on the lock. This is the sort of test that could be applied generically to any operator, as long as they follow the readiness pattern.
We could also make a test operator write its own hostname into some object, maybe even just the spec on any CR it sees. Then we could verify that the value we see there matches the owner reference observed on the operator's lock. That would help ensure that non-leaders are not doing reconciliation. We could even kill the pod, wait for a new leader, and verify that the value gets updated and again matches the ref on the lock.
The text was updated successfully, but these errors were encountered: