generated from runwhen-contrib/codecollection-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (19 loc) · 795 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
GIT_TLD=$(shell git rev-parse --show-toplevel)
SRE_STACK_DIR := $(GIT_TLD)/dev-cluster/sre-stack
include $(DEV_CLUSTER_SUBMODULE_PATH)/.env
include $(GIT_TLD)/.env
include $(DEV_CLUSTER_SUBMODULE_PATH)/makefile
RUNWHEN_SETUP_SCRIPT_PATH=setup/runwhen-local/setup.sh
RUNWHEN_REQUIRED_VARS := RUNWHEN_PLATFORM_TOKEN
$(foreach var,$(RUNWHEN_REQUIRED_VARS),$(if $(value $(var)),,$(error $(var) is not set)))
setup-sre-stack:
git submodule update --recursive --remote
$(MAKE) setup -C $(SRE_STACK_DIR)
cleanup-sre-stack:
$(MAKE) cleanup -C $(SRE_STACK_DIR)
setup-runwhen:
$(GIT_TLD)/$(RUNWHEN_SETUP_SCRIPT_PATH)
cleanup-runwhen:
helm uninstall ${HELM_RELEASE_NAME} -n ${NAMESPACE}
setup-runwhen-all: setup-sre-stack setup-runwhen
cleanup-runwhen-all: cleanup-runwhen cleanup-sre-stack