-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(kubernetes): Use a more efficient kind registry (#3845)
* refactor(kubernetes): Pull kind identifying information to ScopedKind I created ScopedKind as a helper class in KubernetesKind but it really represents the "key" for a given Kind (ie, the unique information that determines what kind we're talking about as opposed to other attributes). Move the name and apiGroup information to live in ScopedKind to encapsulate this. * perf(kubernetes): Use a more efficient kind registry We're always looking up kinds by either name or alias; instead of storing the kinds as an array and looping on every request, create a HashMap mapping the name -> KubernetesKind and another mapping alias -> KubernetesKind so it's easy to look up a kind by name or alias.
- Loading branch information
Showing
2 changed files
with
51 additions
and
50 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