Skip to content

Commit

Permalink
Generating sandbox-bundled manifests via root Makefile (flyteorg#4940)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Lo <[email protected]>
  • Loading branch information
lowc1012 authored and yubofredwang committed Mar 26, 2024
1 parent 4e13d5a commit bc279f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ kustomize:
.PHONY: helm
helm: ## Generate K8s Manifest from Helm Charts.
bash script/generate_helm.sh
make -C docker/sandbox-bundled manifests

.PHONY: release_automation
release_automation:
Expand Down
11 changes: 7 additions & 4 deletions docker/sandbox-bundled/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ flyte: FLYTECONSOLE_VERSION := latest
flyte:
$(foreach arch,amd64 arm64,$(call FLYTE_BINARY_BUILD,$(arch)))

.PHONY: manifests
manifests:
mkdir -p manifests
.PHONY: dep_update
dep_update:
helm dependency update ../../charts/flyteagent
helm dependency update ../../charts/flyte-binary
helm dependency update ../../charts/flyte-sandbox

.PHONY: manifests
manifests:
mkdir -p manifests
kustomize build \
--enable-helm \
--load-restrictor=LoadRestrictionsNone \
Expand All @@ -35,7 +38,7 @@ manifests:
kustomize/complete-agent > manifests/complete-agent.yaml

.PHONY: build
build: flyte manifests
build: flyte dep_update manifests
[ -n "$(shell docker buildx ls | awk '/^flyte-sandbox / {print $$1}')" ] || \
docker buildx create --name flyte-sandbox \
--driver docker-container --driver-opt image=moby/buildkit:master \
Expand Down

0 comments on commit bc279f1

Please sign in to comment.