Skip to content
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 watchers to update budgets in reaction to events #42

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

geobeau
Copy link
Contributor

@geobeau geobeau commented Oct 25, 2023

Watch Pods and PVC for ApplicationDisruptionBudgets.
Implemented using EnqueueRequestsFromMapFunc. By providing a fan-out function, for each event we can determine which ADB is impacted and notify it.

@geobeau geobeau force-pushed the consistent-budget branch 3 times, most recently from 89356d4 to b10efd6 Compare October 26, 2023 09:58
Watch Pods and PVC for ApplicationDisruptionBudgets.
Implemented using EnqueueRequestsFromMapFunc. By providing
a fan-out function, for each event we can determine which ADB
is impacted and notify it.

Co-authored-by: Jonathan Amiez <j.amiez@criteo.com>
@geobeau geobeau requested a review from josqu4red October 26, 2023 15:02
geobeau added a commit to geobeau/node-disruption-controller that referenced this pull request Oct 26, 2023
Copy link
Contributor

@josqu4red josqu4red left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In test suite, the controller startup logic remains in nodedisruption_controller_test, but it's also used for ADB_controller. What about moving it in suite_test ?

@geobeau
Copy link
Contributor Author

geobeau commented Oct 27, 2023

Yes, I will make a refactoring commit to improve the repartition/isolation of each e2e test in a later PR. There are also tests in NodeDisruption that belongs to Application and Node budgets

@geobeau geobeau merged commit e22dad0 into criteo:main Nov 2, 2023
1 check passed
geobeau added a commit that referenced this pull request Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants