-
Notifications
You must be signed in to change notification settings - Fork 82
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
Allow the operator to trigger a reconciliation if a node changes #1989
Allow the operator to trigger a reconciliation if a node changes #1989
Conversation
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
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 manually tested those changes with setting and removing a taint. Here is the output for setting a taint:
{"level":"debug","ts":"2024-04-17T12:00:35Z","logger":"controllers.FoundationDBCluster.NodeTaintChangedPredicate","msg":"Got an UpdateEvent","node":"dummy-node","taintsChanged":true,"oldTaints":null,"newTaints":[{"key":"testing","value":"boom","effect":"NoSchedule"}]}
{"level":"debug","ts":"2024-04-17T12:00:35Z","logger":"controllers.FoundationDBCluster","msg":"Processing findFoundationDBClusterForNode, found Pods on node that changed","node":"dummy-node","labelSelector":"foundationdb.org/fdb-cluster-name","podsOnNode":1}
{"level":"debug","ts":"2024-04-17T12:00:35Z","logger":"controllers.FoundationDBCluster","msg":"Processing findFoundationDBClusterForNode, found cluster that needs an update","node":"dummy-node","triggeringPod":"jdev-stateless-4","clusterName":"jdev"}
{"level":"debug","ts":"2024-04-17T12:00:35Z","logger":"controllers.FoundationDBCluster","msg":"Processing findFoundationDBClusterForNode, found Pods on node that changed","node":"dummy-node","labelSelector":"foundationdb.org/fdb-cluster-name","podsOnNode":1}
{"level":"debug","ts":"2024-04-17T12:00:35Z","logger":"controllers.FoundationDBCluster","msg":"Processing findFoundationDBClusterForNode, found cluster that needs an update","node":"dummy-node","triggeringPod":"jdev-stateless-4","clusterName":"jdev"}
edit: Note that the event is enqueued twice:
EnqueueRequestsFromMapFunc ...
For UpdateEvents which contain both a new and old object, the transformation function is run on both objects and both sets of Requests are enqueue.
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
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 provided one comment is checked over
Result of fdb-kubernetes-operator-pr on Linux CentOS 7
|
The failure was unrelated, seems like the ProcessGroup didn't get the condition in time. |
Description
Fixes: #1629
Type of change
Please select one of the options below.
Discussion
Testing
Ran some manual tests, I have to check how to test this in an e2e test or unit test.
Documentation
Will be updated before marking this PR ready.
Follow-up