Skip to content

Commit

Permalink
support to run upgrade with e2e
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <liuweixa@redhat.com>
  • Loading branch information
skeeey committed Jan 22, 2025
1 parent 4c139da commit fabeac2
Show file tree
Hide file tree
Showing 9 changed files with 1,160 additions and 222 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test/e2e/.consumer_id
test/e2e/.consumer_name
test/e2e/.external_host_ip
test/e2e/report/*
test/e2e/certs
unit-test-results.json
*integration-test-results.json
test/e2e/setup/aro/aro-hcp
41 changes: 33 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,14 @@ db_sslmode:=disable
db_image?=docker.io/library/postgres:14.2

# Message broker connection details
mqtt_host=maestro-mqtt.$(namespace)
mqtt_port=1883
mqtt_user:=maestro
mqtt_password_file=${PWD}/secrets/mqtt.password
mqtt_config_file=${PWD}/secrets/mqtt.config
mqtt_host ?= maestro-mqtt.$(namespace)
mqtt_port ?= 1883
mqtt_user ?= maestro
mqtt_password_file ?= ${PWD}/secrets/mqtt.password
mqtt_config_file ?= ${PWD}/secrets/mqtt.config
mqtt_root_cert ?= ""
mqtt_client_cert ?= ""
mqtt_client_key ?= ""

# Log verbosity level
klog_v:=10
Expand Down Expand Up @@ -93,6 +96,20 @@ unit_test_json_output ?= ${PWD}/unit-test-results.json
mqtt_integration_test_json_output ?= ${PWD}/mqtt-integration-test-results.json
grpc_integration_test_json_output ?= ${PWD}/grpc-integration-test-results.json

# maestro services config
maestro_svc_type ?= ClusterIP
maestro_svc_node_port ?= 0
grpc_svc_type ?= ClusterIP
grpc_svc_node_port ?= 0

# maestro deployment config
liveness_probe_init_delay_seconds ?= 15
readiness_probe_init_delay_seconds ?= 20

# subscription config
subscription_type ?= shared
agent_topic ?= "\$$share/statussubscribers/sources/maestro/consumers/+/agentevents"

# Prints a list of useful targets.
help:
@echo ""
Expand Down Expand Up @@ -292,9 +309,9 @@ cmds:
--param="MQTT_PORT=$(mqtt_port)" \
--param="MQTT_USER=$(mqtt_user)" \
--param="MQTT_PASSWORD=$(shell cat $(mqtt_password_file))" \
--param="MQTT_ROOT_CERT=" \
--param="MQTT_CLIENT_CERT=" \
--param="MQTT_CLIENT_KEY=" \
--param="MQTT_ROOT_CERT=$(mqtt_root_cert)" \
--param="MQTT_CLIENT_CERT=$(mqtt_client_cert)" \
--param="MQTT_CLIENT_KEY=$(mqtt_client_key)" \
--param="MQTT_IMAGE=$(MQTT_IMAGE)" \
--param="IMAGE_REGISTRY=$(internal_image_registry)" \
--param="IMAGE_REPOSITORY=$(image_repository)" \
Expand All @@ -318,6 +335,14 @@ cmds:
--param="ENABLE_OCM_MOCK=$(ENABLE_OCM_MOCK)" \
--param="ENABLE_GRPC_SERVER=$(ENABLE_GRPC_SERVER)" \
--param="MESSAGE_DRIVER_TYPE"=$(MESSAGE_DRIVER_TYPE) \
--param="MAESTRO_SVC_TYPE"=$(maestro_svc_type) \
--param="MAESTRO_SVC_NODE_PORT"=$(maestro_svc_node_port) \
--param="GRPC_SVC_TYPE"=$(grpc_svc_type) \
--param="GRPC_SVC_NODE_PORT"=$(grpc_svc_node_port) \
--param="LIVENESS_PROBE_INIT_DELAY_SECONDS"=$(liveness_probe_init_delay_seconds) \
--param="READINESS_PROBE_INIT_DELAY_SECONDS"=$(readiness_probe_init_delay_seconds) \
--param="SUBSCRIPTION_TYPE"=$(subscription_type) \
--param="AGENT_TOPIC"=$(agent_topic) \
> "templates/$*-template.json"


Expand Down
Loading

0 comments on commit fabeac2

Please sign in to comment.