-
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.
refactor(kubernetes): A few minor refactors and perf fixes (#3813)
* perf(kubernetes): Reduce deserialization of kubernetes pods We're currently deserializing the entire kubernetes pod object when we actually only need the status. Given that pods are very common objects, it's worth only deserializing the status to speed up the server groups endpoint. * refactor(kubernetes): Remove unused variable isNamespaced * refactor(kubernetes): Pull some logic from translateClusters The translateCluster function gets both server groups and load balancers; it would be more clear to have separate functions to do each of these. * refactor(kubernetes): Remove translateCluster function Now that translateCluster has been split into two smaller functions, remove it and call the two smaller ones.
- Loading branch information
Showing
3 changed files
with
46 additions
and
55 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