forked from project-akri/akri
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controller: Retry when watch errors occurs
According to Kube-rs documentation, when a watch error occurs (e.g because of the kube API being currently unavailable), the `Watcher` still forwards the error, but will retry if the receiver continues to wait for a new event. This commit changes how the `Watcher` is used in order to handle those errors and let the `Watcher` retry. A backoff mechanism is also setup so we don't end up retrying forever. Signed-off-by: Nicolas Belouin <nicolas.belouin@suse.com>
- Loading branch information
1 parent
179aeff
commit 846662e
Showing
3 changed files
with
44 additions
and
24 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