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.

  1. mkdir hack
  2. echo "// MY LICENSE" > hack/boilerplate.go.txt
  3. kubebuilder init --domain k8s.io