-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to look up arbitrary resource names in discovery cache
To implement #212, we need the ability to convert from the kind name, e.g. `Pod`, to the plural form, e.g. `pods`. This would be analogous to the existing `kele--get-singular-for-plural`, e.g. `kele--get-plural-for-kind`. Since we'd rather not implement one function for each 2-permutation of singular/plural/kind, we generalize the existing `get-singular-for-plural` to allow for looking up a "discovery resource" by any given key within it. This will allow us to look up with, say, `singularName`, and use the retval to get the `kind`.
- Loading branch information
1 parent
8082e53
commit 98d8907
Showing
1 changed file
with
23 additions
and
16 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