Skip to content

Commit

Permalink
feat(make): add target to render dev manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Jan 8, 2024
1 parent 9d671b7 commit b4c11a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ cluster-config: ## Set kube context for cluster in CLUSTER_DEV_CONFIG.
$(eval CLUSTER_DEV_CONTEXT_NAME=$(shell kubectl config view --kubeconfig='$(CLUSTER_DEV_CONFIG)' -o jsonpath='{.contexts[0].name}'))
kubectl config use-context --kubeconfig=$(CLUSTER_DEV_CONFIG) $(CLUSTER_DEV_CONTEXT_NAME)

CLUSTER_DEV_MODULE_PATH ?=./dev/cluster/pyrovelocity/pyrovelocitydev

cluster-dev-render: ## Render dev package yaml.
timoni build dev $(CLUSTER_DEV_MODULE_PATH) \
-n $(CLUSTER_DEV_NAMESPACE) > $(CLUSTER_DEV_MODULE_PATH)/manifest.yaml
bat -P -l yaml $(CLUSTER_DEV_MODULE_PATH)/manifest.yaml
@echo "bat -pp -l yaml $(CLUSTER_DEV_MODULE_PATH)/manifest.yaml"

cluster-deploy: ## Deploy latest container_image in current kube context (invert: terminate)
skaffold deploy

Expand Down

0 comments on commit b4c11a2

Please sign in to comment.