-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
status: Generation should be set by what the sync worker is doing
The primary mechanism where by a reconciling controller communicates to a client is its status, and the client has to wait until the controller observes its write before assuming the controller is ready. When writing a client that is triggering an upgrade, we need to: 1. Set desiredUpdate and read resulting generation 2. Wait until status.generation == generation from 1 3. Wait until the update that is marked partial in status history is complete This fixes the sync worker to be the one who propagates generation, so that a client doesn't see 2 above when syncing a previous generation.
- Loading branch information
1 parent
cab1434
commit 8ea7884
Showing
6 changed files
with
85 additions
and
26 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
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
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.