-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile.clusters
64 lines (48 loc) · 1.21 KB
/
Makefile.clusters
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
### VARIABLES ###
, := ,
USING = $(subst $(,), ,$(using))
_using = ${USING}
# General make flags/variables
PARALLEL ?= true
TIMEOUT ?= 5m
export PARALLEL SETTINGS TIMEOUT
# Flags affecting `make clusters`
K8S_VERSION ?= 1.31
METALLB_VERSION ?= 0.13.5
OLM_VERSION ?= v0.18.3
PROVIDER ?= kind
export AIR_GAPPED DUAL_STACK IPV6_STACK K8S_VERSION LOAD_BALANCER METALLB_VERSION OLM OLM_VERSION OVERLAPPING PROMETHEUS PROVIDER
### PROCESSING `using=` ###
ifneq (,$(filter ocp,$(_using)))
PROVIDER = ocp
endif
ifneq (,$(filter acm,$(_using)))
PROVIDER = acm
endif
ifneq (,$(filter load-balancer,$(_using)))
LOAD_BALANCER = true
endif
ifneq (,$(filter air-gap,$(_using)))
AIR_GAPPED = true
endif
ifneq (,$(filter dual-stack,$(_using)))
DUAL_STACK = true
endif
ifneq (,$(filter ipv6-stack,$(_using)))
IPV6_STACK = true
endif
ifneq (,$(filter overlapping,$(_using)))
OVERLAPPING = true
endif
ifneq (,$(filter prometheus,$(_using)))
PROMETHEUS = true
endif
### TARGETS ###
# [clean-clusters] removes running clusters
clean-clusters:
$(SCRIPTS_DIR)/cleanup.sh
cleanup: clean-clusters
# [clusters] creates KIND clusters that can then be used to deploy Submariner
clusters:
$(SCRIPTS_DIR)/$@.sh
.PHONY: clean-clusters cleanup clusters