-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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: don't nuke files if only verifying #123261
codegen: don't nuke files if only verifying #123261
Conversation
The code generation tools support verification only with the --verify-only option, but this now fails because the files are nuked ahead of time. Signed-off-by: Stephen Kitt <[email protected]>
/cc @thockin This breaks external projects using |
This reverts commit 6fb8a12. kube_codegen.sh only defines functions, generate-groups.sh still needs to be called to actually perform the generation. generate-groups.sh relies on generate-internal-groups.sh which needs to be made executable. The latter also nukes generated files even when verifying; this is disabled here by modifying the vendored files. See kubernetes/kubernetes#123261 for the proposed upstream fix. Signed-off-by: Stephen Kitt <[email protected]>
This reverts commit 6fb8a12. kube_codegen.sh only defines functions, generate-groups.sh still needs to be called to actually perform the generation. generate-groups.sh relies on generate-internal-groups.sh which needs to be made executable. The latter also nukes generated files even when verifying; this is disabled here by modifying the vendored files. See kubernetes/kubernetes#123261 for the proposed upstream fix. Signed-off-by: Stephen Kitt <[email protected]>
generate-groups.sh is deprecated and will be nuked entirely when Go workspaces lands, as will the verify logic (I honestly didn't think anyone used it at all). I could maybe see restoring the verify functionality post-workspaces, maybe. |
I'll approve for the purpose of backporting, but if I get my way this is all removed in 30. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: skitt, 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 |
LGTM label has been added. Git tree hash: cbd89a28672fd01a967126ea092244963508fe1d
|
/triage accepted |
…1-origin-release-1.29 Automated cherry pick of #123261: codegen: don't nuke files if only verifying
…1-origin-release-1.28 Automated cherry pick of #123261: codegen: don't nuke files if only verifying
This file removal bug was fixed by kubernetes/kubernetes#123261 Signed-off-by: Stephen Kitt <[email protected]>
This file removal bug was fixed by kubernetes/kubernetes#123261 so the workaround can be removed. Signed-off-by: Stephen Kitt <[email protected]>
This file removal bug was fixed by kubernetes/kubernetes#123261 so the workaround can be removed. Signed-off-by: Stephen Kitt <[email protected]>
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
The code generation tools support verification only with the --verify-only option, but this now fails because the files are nuked ahead of time.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: