Skip to content

Commit

Permalink
fix make command for generating manifests
Browse files Browse the repository at this point in the history
make generate does not generate the CRDs in config/crd/base the correct command to accomplish this is make manifests. See Makefile:

generate: controller-gen  ## Generate code (deepcopy)
	$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."

manifests: controller-gen  ## Generate manifests (CRDs, RBAC, etc.)
	$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
  • Loading branch information
vtrenton authored Nov 8, 2024
1 parent 02653c3 commit e481fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/book/src/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Now, see our example fully completed.

#### Generating manifests with the specs and validations

To generate the required CRDs we will run `make generate` command, which will call [controller-gen][controller-gen]
To generate the required CRDs we will run `make manifests` command, which will call [controller-gen][controller-gen]
to generate the CRD manifest, which is located under the `config/crd/bases` directory.

<details><summary><code>config/crd/bases/cache.example.com_memcacheds.yam</code>: Our Memcached CRD</summary>
Expand Down

0 comments on commit e481fe4

Please sign in to comment.