-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tracking issue: teach controllerbuilder tooling about multiple resources #2802
Comments
effectively replaces the types.generated.go file which we probably want to have live on a per resource folder level. The final folder structure can look something like:
|
Alternative approach: rather than running "generate-types" for each individual resource, we could modify the command to handle multiple resources in a single run. This would result in the generated types for all resources (in the same API group) being combined into one "types.generated.go" file. |
After thinking more about this issue, my preference is to use a single "types.generated.go" for a specific API and version. (e.g.
|
hey @jingyih thanks for engaging with this! I think we're on the same page modulo the folder structure. Here's the PR for what I had in mind: The work for
We can add that as a follow on. |
I just created #2819, which bundles the types for |
I am working on another resource (Listing) in the same api group (BigQueryAnalyticsHub). I'm going to write down papercuts and changes that are needed for our tooling to support more than one resource per api group easily.
generate-type
cmd needs to place types in their own folder: refactor: make cmds kind aware #2809generate-mapper
cmd needs to place types in their own folderadd
cmd needs to place types in their own folder: ✅ refactor: make add cmd kind aware #2851The text was updated successfully, but these errors were encountered: