Reduce the amount of code exposed to controller-tools (stop creating config/bases/_.yaml)
@@ -59,7 +59,7 @@ deploy: manifests
# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
- $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
+ $(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./controllers/...;./pkg/apis/..." output:crd:artifacts:config=config/crd/bases
# Run go fmt against code
fmt:
