Skip to content

Commit 4639216

Browse files
committed
refactor: minor improvements
Signed-off-by: Amit Singh <singhamitch@outlook.com>
1 parent 8446739 commit 4639216

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

makefiles/const.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,7 @@ VELA_APISERVER_IMAGE ?= apiserver:latest
6868
VELA_RUNTIME_ROLLOUT_IMAGE ?= vela-runtime-rollout:latest
6969
VELA_RUNTIME_ROLLOUT_TEST_IMAGE ?= vela-runtime-rollout-test:$(GIT_COMMIT)
7070
RUNTIME_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

makefiles/dependency.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,5 +109,8 @@ $(ENVTEST): $(LOCALBIN)
109109
PKG_MODULE = github.com/kubevela/pkg # fetch common crds from the pkg repo instead of generating locally
110110
sync-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

0 commit comments

Comments
 (0)