Add licenses and fix manifests generation (#21)
Signed-off-by: Siyu Wang <FillZpp.pub@gmail.com>
This commit is contained in:
parent
d26d3a66c6
commit
7539cc4f09
|
|
@ -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
|
||||||
|
```
|
||||||
|
|
@ -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
|
||||||
4
Makefile
4
Makefile
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
# Image URL to use all building/pushing image targets
|
# Image URL to use all building/pushing image targets
|
||||||
IMG ?= controller:latest
|
IMG ?= controller:latest
|
||||||
CRD_OPTIONS ?= "crd:crdVersions=v1"
|
|
||||||
|
|
||||||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
|
||||||
ifeq (,$(shell go env GOBIN))
|
ifeq (,$(shell go env GOBIN))
|
||||||
|
|
@ -37,7 +36,8 @@ help: ## Display this help.
|
||||||
##@ Development
|
##@ Development
|
||||||
|
|
||||||
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
|
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.
|
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
|
||||||
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
|
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue