Skip to content

Commit

Permalink
add api and grpc port to mock management plane make target (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
aphralG authored May 3, 2024
1 parent 545e0c6 commit 483f4b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ RPM_PACKAGE := ./build/$(PACKAGE_NAME).rpm

MOCK_MANAGEMENT_PLANE_CONFIG_DIRECTORY ?=
MOCK_MANAGEMENT_PLANE_LOG_LEVEL ?= INFO
MOCK_MANAGEMENT_PLANE_GRPC_ADDRESS ?= 127.0.0.1:0
MOCK_MANAGEMENT_PLANE_API_ADDRESS ?= 127.0.0.1:0
OLD_BENCHMARK_RESULTS_FILE ?= $(TEST_BUILD_DIR)/benchmark.txt

uname_m := $(shell uname -m)
Expand Down Expand Up @@ -171,7 +173,7 @@ race-condition-dev: ## Run agent executable with race condition detection

run-mock-management-grpc-server: ## Run mock management plane gRPC server
@echo "🚀 Running mock management plane gRPC server"
$(GORUN) test/mock/grpc/cmd/main.go -configDirectory=$(MOCK_MANAGEMENT_PLANE_CONFIG_DIRECTORY) -logLevel=$(MOCK_MANAGEMENT_PLANE_LOG_LEVEL)
$(GORUN) test/mock/grpc/cmd/main.go -configDirectory=$(MOCK_MANAGEMENT_PLANE_CONFIG_DIRECTORY) -logLevel=$(MOCK_MANAGEMENT_PLANE_LOG_LEVEL) -grpcAddress=$(MOCK_MANAGEMENT_PLANE_GRPC_ADDRESS) -apiAddress=$(MOCK_MANAGEMENT_PLANE_API_ADDRESS)

generate: ## Generate proto files and server and client stubs from OpenAPI specifications
@echo "Generating proto files"
Expand Down

0 comments on commit 483f4b8

Please sign in to comment.