Defining Boilerplate License Headers
It is possible to add boilerplate license headers to all generated code bydefining hack/boilerplate.go.txt
before initializing a project.
If you don't create boilerplate.go.txt
an apache2 boilerplate header beforerunning init an apache2 header will be created for you by default.
mkdir hack
echo "// MY LICENSE" > hack/boilerplate.go.txt
kubebuilder init --domain k8s.io
当前内容版权归 kubebuilder.io 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 kubebuilder.io .