diff --git a/.license/README.md b/.license/README.md new file mode 100644 index 0000000..f386fc2 --- /dev/null +++ b/.license/README.md @@ -0,0 +1,19 @@ +# License Checker + +Our license checker CI rely on [LicenseFinder](https://github.com/pivotal/LicenseFinder). + +## How to add a new license + +LicenseFinder is a ruby project, so make sure you have ruby installed. + +### Install the tool + +```shell +gem install license_finder +``` + +### Add a license + +```shell +license_finder permitted_licenses add MIT --decisions_file .license/dependency_decisions.yml +``` diff --git a/.license/dependency_decisions.yml b/.license/dependency_decisions.yml new file mode 100644 index 0000000..f721d44 --- /dev/null +++ b/.license/dependency_decisions.yml @@ -0,0 +1,43 @@ +--- +- - :permit + - MIT + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:35:34.645031000 Z +- - :permit + - Apache 2.0 + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:19:18.243194000 Z +- - :permit + - New BSD + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:19:28.540675000 Z +- - :permit + - Simplified BSD + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:20:01.774212000 Z +- - :permit + - Mozilla Public License 2.0 + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:21:05.194536000 Z +- - :permit + - unknown + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:21:43.379269000 Z +- - :permit + - ISC + - :who: + :why: + :versions: [] + :when: 2021-03-12 07:22:07.265966000 Z diff --git a/Makefile b/Makefile index b876744..9c84adb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ # Image URL to use all building/pushing image targets IMG ?= controller:latest -CRD_OPTIONS ?= "crd:crdVersions=v1" # Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) ifeq (,$(shell go env GOBIN)) @@ -37,7 +36,8 @@ help: ## Display this help. ##@ Development manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects. - $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases + $(CONTROLLER_GEN) crd:crdVersions=v1 paths="./api/..." output:crd:artifacts:config=config/crd/bases + $(CONTROLLER_GEN) rbac:roleName=manager-role webhook paths="./..." generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. $(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."