11
22.DEFAULT_GOAL := help
33
4- # Possible envs are gcp, e2e-gcp, kind, e2e-kind
4+ # Possible envs are gcp, e2e-gcp, kind, e2e-kind, oci
55# Default to gcp
66HELMFILE_ENV ?= gcp
77
88
9- ifeq ($(findstring gcp,$(HELMFILE_ENV ) ) ,)
9+ ifeq ($(HELMFILE_ENV ) ,oci)
10+ -include env.oci
11+ else ifeq ($(findstring gcp,$(HELMFILE_ENV)),)
1012 -include env.kind
1113else
1214 -include env.gcp
@@ -273,8 +275,9 @@ check-helmfile-env-generated: ## Check that the generated directory exists based
273275 elif [ " $( HELMFILE_ENV) " = " kind" ]; then \
274276 test -d $(GENERATED_RABBITMQ_DIR ) || { echo " ERROR: generated-values-rabbitmq directory does not exist" ; exit 1; }; \
275277 echo " OK: generated-values-rabbitmq directory exists" ; \
278+ else \
279+ echo " OK: no generated values needed for environment: $( HELMFILE_ENV) " ; \
276280 fi
277- @echo " OK: Did not need to validate generated values for environment: $( HELMFILE_ENV) "
278281
279282
280283.PHONY : check-kubectl-context
@@ -299,9 +302,12 @@ check-kubectl-context: check-kubectl ## Verify kubectl context matches HELMFILE_
299302 exit 1; \
300303 fi \
301304 ;; \
305+ oci) \
306+ echo " OK: connected to OCI/OKE cluster (context: $$ CONTEXT)" ; \
307+ ;; \
302308 * ) \
303309 echo " ERROR: invalid HELMFILE_ENV: $( HELMFILE_ENV) " ; \
304- echo " Valid values: gcp, e2e-gcp, kind, e2e-kind" ; \
310+ echo " Valid values: gcp, e2e-gcp, kind, e2e-kind, oci " ; \
305311 exit 1 \
306312 ;; \
307313 esac \
@@ -372,7 +378,7 @@ help: ## Show this help message
372378 @echo " "
373379 @echo " Usage: make [target] [VARIABLE=value ...]"
374380 @echo " "
375- @echo " Environment: HELMFILE_ENV=$( HELMFILE_ENV) (gcp|kind|e2e-gcp|e2e-kind)"
381+ @echo " Environment: HELMFILE_ENV=$( HELMFILE_ENV) (gcp|kind|e2e-gcp|e2e-kind|oci )"
376382 @echo " "
377383 @awk ' /^# ====/ { \
378384 section = $$ 0; \
@@ -397,6 +403,16 @@ help: ## Show this help message
397403
398404
399405
406+ # ==== OCI/OKE Deployment Targets ====
407+
408+ .PHONY : install-all-oci
409+ install-all-oci : check-helmfile-env # # Full OCI/OKE install (rabbitmq + api + sentinel + adapter1 via helmfile)
410+ helmfile -f helmfile/helmfile.yaml.gotmpl -e $(HELMFILE_ENV ) apply
411+
412+ .PHONY : uninstall-all-oci
413+ uninstall-all-oci : check-helmfile-env # # Uninstall all OCI components
414+ helmfile -f helmfile/helmfile.yaml.gotmpl -e $(HELMFILE_ENV ) destroy
415+
400416# ==== CI Targets ====
401417# ci-dry-run: validation on terraform and helm plugins and maestro helm chart
402418# ci-test: Run terraform install + maestro install + health check on maestro
0 commit comments