File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,4 +68,7 @@ VELA_APISERVER_IMAGE ?= apiserver:latest
6868VELA_RUNTIME_ROLLOUT_IMAGE ?= vela-runtime-rollout:latest
6969VELA_RUNTIME_ROLLOUT_TEST_IMAGE ?= vela-runtime-rollout-test:$(GIT_COMMIT )
7070RUNTIME_CLUSTER_CONFIG ?= /tmp/worker.client.kubeconfig
71- RUNTIME_CLUSTER_NAME ?= worker
71+ RUNTIME_CLUSTER_NAME ?= worker
72+
73+ COMMON_CRD_FILES = \
74+ core.oam.dev_workflows.yaml
Original file line number Diff line number Diff line change @@ -109,5 +109,8 @@ $(ENVTEST): $(LOCALBIN)
109109PKG_MODULE = github.com/kubevela/pkg # fetch common crds from the pkg repo instead of generating locally
110110sync-crds: # # Copy CRD from pinned module version in go.mod
111111 @moddir=$$(go list -m -f '{{.Dir}}' $(PKG_MODULE ) 2>/dev/null ) ; \
112- src="$$moddir/crds/core.oam.dev_workflows.yaml"; \
113- cp -f "$$src" "charts/vela-workflow/crds/"
112+ mkdir -p config/crd/bases; \
113+ for file in $(COMMON_CRD_FILES ) ; do \
114+ src="$$moddir/crds/$$file"; \
115+ cp -f "$$src" "config/crd/bases/"; \
116+ done
You can’t perform that action at this time.
0 commit comments