Navigation Menu

Skip to content

Commit

Permalink
Introduce 'make generate' to generate code and CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvagabund committed Apr 8, 2019
1 parent aeadd1e commit 14d9d26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Expand Up @@ -42,9 +42,12 @@ nodelink-controller:
machine-healthcheck:
$(DOCKER_CMD) ./hack/go-build.sh machine-healthcheck

.PHONY: generate
generate: gen-crd update-codegen

.PHONY: gen-crd
gen-crd:
./hack/gen-crd.sh
$(DOCKER_CMD) ./hack/gen-crd.sh

.PHONY: update-codegen
update-codegen:
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -114,6 +114,12 @@ $ make nodelink-controller

## Dev

- Generate code (if needed):

```sh
$ make generate
```

- Build:

```sh
Expand Down

0 comments on commit 14d9d26

Please sign in to comment.