-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
commands/.../generate/*: set generator header file if not supplied #1239
Conversation
Interesting, what is the main reason behind this behavior? |
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.
lgtm
@lilic |
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.
LGTM, with the one totally optional style nit 🙂
Description of the change: allow users to pass in a header file for
generate k8s
, or use a temp file if one is not supplied.Motivation for the change:
deepcopy-gen
anddefaulter-gen
now require header files, and will fail if not provided. I noticed this when testing the SDK with go modules;go mod vendor
removes default header files from the gengo repo.