-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
✨ Add header and year options for yaml generator #544
Conversation
Welcome @nak3! |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
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/test-infra repository. |
/reopen This seems like a valuable feature... |
@justinsb: Reopened this PR. In response to this:
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/test-infra repository. |
This patch adds headerFile and year options to CRD, RBAC and Webhook generator Currently headerFile and year options are available on only generate option. This patch adds the option for YAMLs. e.g. generate the crd with headerfile ``` go run sigs.k8s.io/controller-tools/cmd/controller-gen \ crd:crdVersions=v1,year=2021,headerFile="${PATH_TO_YOUR_BOILDER_PLATE}" \ output:crd:artifacts:config=config/crd/bases \ paths=./... ```
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nak3, vincepri 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 |
Some tests would be good, to avoid regressions later :) |
Adds some test coverage to CRD generation, including for the new HeaderFile support for license headers (in kubernetes-sigs#544).
Adds some test coverage to CRD generation, including for the new HeaderFile support for license headers (in kubernetes-sigs#544).
This patch adds headerFile and year options to CRD, RBAC and Webhook generator
Currently headerFile and year options are available on only generate option.
This patch adds the option for YAMLs.
e.g. generate the crd with headerfile
Fix #464