-
Notifications
You must be signed in to change notification settings - Fork 17
✨ Add things for kcp-dev/client-go #111
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
Conversation
Signed-off-by: Nelo-T. Wallus <[email protected]>
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had only noticed this because the tests in kcp were complaining about the mismatch :D
cluster_codegen.sh
Outdated
| # 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
versions
Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]>
Signed-off-by: Nelo-T. Wallus <[email protected]>
|
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. |
xrstf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
|
LGTM label has been added. Git 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
Needs 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