From e481fe4e483a2d259f6c3649d257404f9565d1bb Mon Sep 17 00:00:00 2001 From: "Trent V." Date: Fri, 8 Nov 2024 11:58:04 -0600 Subject: [PATCH] fix make command for generating manifests 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 --- docs/book/src/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/book/src/getting-started.md b/docs/book/src/getting-started.md index 5c9a88cb7a1..71920df8ea5 100644 --- a/docs/book/src/getting-started.md +++ b/docs/book/src/getting-started.md @@ -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.
config/crd/bases/cache.example.com_memcacheds.yam: Our Memcached CRD