Skip to content

Commit 16902d7

Browse files
committed
Fix
Signed-off-by: Pavol Loffay <[email protected]>
1 parent df90ea8 commit 16902d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ BUNDLE_DEFAULT_CHANNEL := --default-channel=$(DEFAULT_CHANNEL)
3939
endif
4040
BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
4141

42+
MANIFEST_DIR ?= config/crd/bases
4243
# kubectl apply does not work on large CRDs.
4344
CRD_OPTIONS ?= "crd:generateEmbeddedObjectMeta=true,maxDescLen=0"
4445

@@ -172,7 +173,7 @@ release-artifacts: set-image-controller
172173
# Generate manifests e.g. CRD, RBAC etc.
173174
.PHONY: manifests
174175
manifests: controller-gen
175-
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases
176+
$(CONTROLLER_GEN) $(CRD_OPTIONS) rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=${MANIFEST_DIR}
176177

177178
# Run tests
178179
# setup-envtest uses KUBEBUILDER_ASSETS which points to a directory with binaries (api-server, etcd and kubectl)

0 commit comments

Comments
 (0)