-
Notifications
You must be signed in to change notification settings - Fork 41.9k
Codegen: subproject cleanups and chdir #116281
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
Codegen: subproject cleanups and chdir #116281
Conversation
0b0a3ec to
dcd9c53
Compare
|
/triage accepted |
dcd9c53 to
6efa410
Compare
|
/retest |
This moves the hack/ directory and scripts to the examples dir, which is a distinct module. This avoids some Go unpleasantness around module boundaries and just makes more sense.
6efa410 to
e608b35
Compare
|
Rebased |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: thockin 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 |
hack/update-codegen.sh
Outdated
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.
why is this inside the loop? is not always the same 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.
haha, yes. :)
This makes it feel more like an API to be used in other repos (which is really what it is for).
thockin
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.
Will push a new update
hack/update-codegen.sh
Outdated
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.
haha, yes. :)
e608b35 to
73eb7c0
Compare
|
/lgtm |
|
LGTM label has been added. Git tree hash: f3094de36b174760dc12094ce20e9c07e7414771
|
Three related commits, building on #116280
Move the hack/ directory and scripts within k8s.io/code-generator/examples to be more self-contained, and fix the fallout.
When running subproject generators, chdir and pretend it's a standalone repo (as an external user would use it)
Indent the subproject generation logs for easier reading.
/kind cleanup