-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch: update the primarykinds map to be a slice of GroupVersionKinds
The main issue with the current code is, it uses a GroupVersionKinds cache and that a simple `map[string]GroupVersionKind` and it does not allow multiple versions of the same Kind. This patch changes this logic the way, the map stores a list of GroupVersionKinds. The affects 2 endpoints: GetObject and ListObjects. With this patch: 1. GetObject will iterate over all known Kind versions and return with the first found object and skips the rest. 2. ListObjects iterates over all known Kind versions and aggregates the results list into a single list and returns with that list. Signed-off-by: Balazs Nadasdi <[email protected]>
- Loading branch information
Showing
3 changed files
with
134 additions
and
115 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