-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set a route expectation to delay processing until routes are created
When a controller creates multiple routes from a single ingress it may observe arbitrary delays between the time of creation and when it observes that route in its cache. Like other controllers that use random name generation (secret controller, replica set controller) we therefore need to wait until our expectation is met. To simplify the code, we bypass server side name generation and use our own name generation to avoid racing against the server (create route, server sends event, set expectation = expectation is never cleared).
- Loading branch information
1 parent
e224347
commit 47840db
Showing
6 changed files
with
454 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.