✨ Add things for kcp-dev/client-go#111
Conversation
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Required as
Because |
| func targetForClientset(args *args.Args, clientsetDir, clientsetPkg string, groupGoNames map[clientgentypes.GroupVersion]string, boilerplate []byte) generator.Target { | ||
| return &generator.SimpleTarget{ | ||
| PkgName: "clientset", | ||
| PkgName: path.Base(clientsetPkg), |
There was a problem hiding this comment.
Could also make this an input, e.g. clientsetPkgName but imho thats just another possible error source and path.Base should always return the correct value.
There was a problem hiding this comment.
Just make sure this works both in the code-generator's examples and for kcp itself. Both have widely different directory structures, so assumptions are difficult to make here 😁
There was a problem hiding this comment.
I had only noticed this because the tests in kcp were complaining about the mismatch :D
| # An optional list of comma separated plural exception definitions in Type:PluralizedType form. | ||
| # | ||
| # --exclude-packages <string = ""> | ||
| # An optional list of comma separate group verions to exclude from |
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
|
I also looked into generating the However that fails on the group - it doesn't look like the group is readily available and v2 built it while parsing the source. |
|
LGTM label has been added. DetailsGit tree hash: e249095f3d4ba7189fac29cdc3b9fb386a744736 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xrstf The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
Adds things to genearte kcp-dev/client-go with code-generator/v3
Related issue(s)
Fixes #
Release Notes