-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor yurthub cache to adapt different storages (#882)
* refactor yurthub in order to use gernal backend storage Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn> * add unit tests for fs * add unit tests for disk storage * revise ut to compatiable with new disk storage Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn> * fix bug: cannot query list with name fieldSelector * fix bug: failed to list csidrivers and runtimeclasses * fix bug: cannot create lease in storage * fix bug: failed to list/watch when offline * nonResourceRequestWrapper refactor to get api-resources and api-versions * enhancement: distinguish resources of same name but in different GroupVersions * fix bug: return empty ListObj if resource is not found when handling list request with metadata.name fieldSelector * decouple cachemanager with key.IsRootKey() Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn> * use t.Run to run unit test * modify sub-interface name of store Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn> * ensure compability with older version Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn> Signed-off-by: Congrool <chpzhangyifei@zju.edu.cn>
- Loading branch information
Showing
43 changed files
with
4,756 additions
and
1,889 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
Oops, something went wrong.