-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split out clusters to its own Makefile
To make it easy for other projects to consume, split out cluster creation and cleanup to a `Makefile.clusters` file that can be included by other projects that desire these capabilities. Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
- Loading branch information
Showing
2 changed files
with
65 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
### 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.25 | ||
METALLB_VERSION ?= 0.13.5 | ||
OLM_VERSION ?= v0.18.3 | ||
PROVIDER ?= kind | ||
export AIR_GAPPED DUAL_STACK GLOBALNET K8S_VERSION LOAD_BALANCER METALLB_VERSION OLM OLM_VERSION 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 globalnet,$(_using))) | ||
GLOBALNET = true | ||
endif | ||
|
||
ifneq (,$(filter prometheus,$(_using))) | ||
PROMETHEUS = true | ||
endif | ||
|
||
### TARGETS ### | ||
|
||
# [clean-clusters] removes running clusters | ||
clean-clusters: | ||
$(SCRIPTS_DIR)/cleanup.sh | ||
cleanup: clean-clusters | ||
clean: clean-clusters | ||
|
||
# [clusters] creates KIND clusters that can then be used to deploy Submariner | ||
clusters: | ||
$(SCRIPTS_DIR)/$@.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters