-
Notifications
You must be signed in to change notification settings - Fork 100
Boilerplate verification to ensure LICENSE information is present #880
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
Boilerplate verification to ensure LICENSE information is present #880
Conversation
… in turn calls verify-boilerplate.sh
Welcome @bharathbrat! |
Hi @bharathbrat. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for gateway-api-inference-extension ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
/ok-to-test |
…ses some diff errors to show up when compared to .orig files
45ddaaa
to
3043ba5
Compare
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.
some files were copied from another repo and contain 2014/2015 year in their header.. should fix those
/retest |
I am a bit puzzled by the latest test failures here. When I check locally these files pass:
Do the files under client-go get regenerated at build time? Wondering if that causes these failures. |
we should have one boilerplate for go files and one for go generated files (which we have). to be more concrete, I think hack/boilerplate.go should be removed, hack/boilerplate/boilerplate.gogenerate should be used in make generate as header file, and hack/boilerplate/boilerplate.go should keep the year |
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.
Thanks @bharathbrat!
/lgtm
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, bharathbrat 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 |
…bernetes-sigs#880) * Copy boilerplate.py from gateway-api * Create boilerplate.generatego.txt * Create boilerplate.go.txt * Create boilerplate.py.txt * Create boilerplate.sh.txt * Create verify-boilerplate.sh * Create verify-all.sh * Create kube-env.sh * Update Makefile to run static analysis that calls verify-all.sh which in turn calls verify-boilerplate.sh * trim unrequired dirs and files from skipped list in boilerplate.py * Fix definition of verify-all.sh in the Makefile * Adding execute permissions for the verify-all and verify-boilerplate scripts * Adding execute permissions for boilerplate.py * Fixing all existing violations that boilerplate verification found initially * Adding some files to ignore list because modifying their licenses causes some diff errors to show up when compared to .orig files * Update boilerplate verification scripts license year to 2025 * Remove year from boilerplate template for update-codegen.sh * Add bin/kube_codegen.sh to skipped files for boilerplate verification * Switch go codegen to use boilerplate.generatego.txt and remove the old redundant source
…bernetes-sigs#880) * Copy boilerplate.py from gateway-api * Create boilerplate.generatego.txt * Create boilerplate.go.txt * Create boilerplate.py.txt * Create boilerplate.sh.txt * Create verify-boilerplate.sh * Create verify-all.sh * Create kube-env.sh * Update Makefile to run static analysis that calls verify-all.sh which in turn calls verify-boilerplate.sh * trim unrequired dirs and files from skipped list in boilerplate.py * Fix definition of verify-all.sh in the Makefile * Adding execute permissions for the verify-all and verify-boilerplate scripts * Adding execute permissions for boilerplate.py * Fixing all existing violations that boilerplate verification found initially * Adding some files to ignore list because modifying their licenses causes some diff errors to show up when compared to .orig files * Update boilerplate verification scripts license year to 2025 * Remove year from boilerplate template for update-codegen.sh * Add bin/kube_codegen.sh to skipped files for boilerplate verification * Switch go codegen to use boilerplate.generatego.txt and remove the old redundant source
…bernetes-sigs#880) * Copy boilerplate.py from gateway-api * Create boilerplate.generatego.txt * Create boilerplate.go.txt * Create boilerplate.py.txt * Create boilerplate.sh.txt * Create verify-boilerplate.sh * Create verify-all.sh * Create kube-env.sh * Update Makefile to run static analysis that calls verify-all.sh which in turn calls verify-boilerplate.sh * trim unrequired dirs and files from skipped list in boilerplate.py * Fix definition of verify-all.sh in the Makefile * Adding execute permissions for the verify-all and verify-boilerplate scripts * Adding execute permissions for boilerplate.py * Fixing all existing violations that boilerplate verification found initially * Adding some files to ignore list because modifying their licenses causes some diff errors to show up when compared to .orig files * Update boilerplate verification scripts license year to 2025 * Remove year from boilerplate template for update-codegen.sh * Add bin/kube_codegen.sh to skipped files for boilerplate verification * Switch go codegen to use boilerplate.generatego.txt and remove the old redundant source
Adds boilerplate verification to ensure LICENSE information is present wherever required.
This is copied from gateway-api repository: https://github.com/kubernetes-sigs/gateway-api/blob/main/hack/boilerplate/boilerplate.py. Main modification was to trim skipped dirs or files from the original file. There are some I have left in because they look like generic folders.
Fixes: #848