kcp-dev / code-generator

Generators for workspace-aware clientsets, informers, and listers
Apache License 2.0
4 stars 11 forks source link

Add support for plural names for types #19

Closed varshaprasad96 closed 2 years ago

varshaprasad96 commented 2 years ago

Follow up of #17

Add support to template plural names for input types as code-gen does here: https://github.com/kubernetes/code-generator/blob/7d977b3e5454e47ec6b903242616e9ea62644226/cmd/client-gen/generators/client_generator.go#L95-L104

The logic for plural names is taken from gengo here: https://github.com/kubernetes/gengo/blob/4627b89bbf1bc415e134f359f597053a5d1b6553/namer/plural_namer.go#L54