-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle kubernetes watcher stream disconnection
Currently, when kubernetes watch stream times out and we get error 410, we just return resourve version '0' which is not the latest version. From the documentation, timing out is expected and we should handle it by performing a list>watch>relist operation so we can continue watching from the latest resource version. See https://kubernetes.io/docs/reference/using-api/api-concepts/#efficient-detection-of-changes This PR follows the list>watch>relist pattern
- Loading branch information
1 parent
150f225
commit 464b49e
Showing
2 changed files
with
93 additions
and
23 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