mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 22:40:34 +00:00
The submariner-operator Helm chart deploys Submariner using the Submariner operator: it deploys the CRDs, roles, and SAs required to run the operator and Submariner, then pushes a Submariner CR to instruct the operator to deploy Submariner. This patch also adds a Makefile to validate the deployments; run make deploy to test the Helm charts (this will bring up two clusters, install the broker on one of them and the operator on both, and end with a connectivity test). Fixes: #17 Signed-off-by: Stephen Kitt <skitt@redhat.com>
37 lines
853 B
Makefile
37 lines
853 B
Makefile
ifneq (,$(DAPPER_HOST_ARCH))
|
|
|
|
# Running in Dapper
|
|
|
|
include $(SHIPYARD_DIR)/Makefile.inc
|
|
|
|
CLUSTER_SETTINGS_FLAG = --cluster_settings $(DAPPER_SOURCE)/cluster_settings
|
|
override CLUSTERS_ARGS += $(CLUSTER_SETTINGS_FLAG)
|
|
override DEPLOY_ARGS += $(CLUSTER_SETTINGS_FLAG) --deploytool helm
|
|
export DEPLOY_ARGS
|
|
|
|
# Targets to make
|
|
|
|
deploy: clusters preload-images
|
|
|
|
preload-images:
|
|
source $(SCRIPTS_DIR)/lib/debug_functions; \
|
|
source $(SCRIPTS_DIR)/lib/deploy_funcs; \
|
|
source $(SCRIPTS_DIR)/lib/version; \
|
|
set -e; \
|
|
for image in submariner submariner-route-agent submariner-operator lighthouse-agent submariner-globalnet lighthouse-coredns; do \
|
|
import_image quay.io/submariner/$${image}; \
|
|
done
|
|
|
|
.PHONY: preload-images
|
|
|
|
else
|
|
|
|
# Not running in Dapper
|
|
|
|
include Makefile.dapper
|
|
|
|
endif
|
|
|
|
# Disable rebuilding Makefile
|
|
Makefile Makefile.dapper Makefile.inc: ;
|