forked from submariner-io/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
39 lines (28 loc) · 1.11 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
version ?= 1.14.6
coredns ?= 1.5.2
deploytool ?= helm
TARGETS := $(shell ls scripts | grep -v deploy)
SCRIPTS_DIR ?= /opt/shipyard/scripts
ifeq ($(deploytool),operator)
DEPLOY_ARGS += --deploytool operator --deploytool_broker_args '--service-discovery'
else
DEPLOY_ARGS += --deploytool helm --deploytool_broker_args '--set submariner.serviceDiscovery=true' --deploytool_submariner_args '--set submariner.serviceDiscovery=true,lighthouse.image.repository=localhost:5000/lighthouse-agent,serviceAccounts.lighthouse.create=true'
endif
.dapper:
@echo Downloading dapper
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp
@@chmod +x .dapper.tmp
@./.dapper.tmp -v
@mv .dapper.tmp .dapper
cleanup: .dapper
./.dapper -m bind $(SCRIPTS_DIR)/cleanup.sh
clusters:
./.dapper -m bind $(SCRIPTS_DIR)/clusters.sh --k8s_version $(version)
deploy: build clusters
DAPPER_ENV="OPERATOR_IMAGE" ./.dapper -m bind $@ $(DEPLOY_ARGS)
e2e: deploy
./.dapper -m bind scripts/kind-e2e/e2e.sh
$(TARGETS): .dapper
./.dapper -m bind $@ $(version) $(coredns)
.DEFAULT_GOAL := ci
.PHONY: $(TARGETS)