Skip to content

Commit 081c2e1

Browse files
togashidmsys-emf
andauthored
refactor: multitenancy simplification (#821)
Co-authored-by: SYS-EMF <sys-emf-github@intel.com>
1 parent e6a2285 commit 081c2e1

35 files changed

+79189
-17330
lines changed

apiv2/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ OASDIFF := true
2424
PROTOCGENOAPI := true
2525
PROTOCGENGRPCGW := true
2626

27+
# Tool paths - prefer Go bin path for oapi-codegen v2
28+
OAPI_CODEGEN_CMD ?= $(shell command -v ~/go/bin/oapi-codegen 2>/dev/null || command -v oapi-codegen)
29+
2730
# Defining the shell, users and groups
2831
CURRENT_UID := $(shell id -u)
2932
CURRENT_GID := $(shell id -g)
@@ -113,17 +116,17 @@ oapi-docs: ## generates a single/complete documentation of the OpenAPI spec in
113116

114117
$(TYPES): $(OPENAPI_PATH) ## generate types API from OpenAPI specs
115118
mkdir -p $(API_GEN_FOLDER)
116-
oapi-codegen --config=api/openapi/types.cfg.yaml $<
119+
$(OAPI_CODEGEN_CMD) --config=api/openapi/types.cfg.yaml $<
117120
mv edge-infrastructure-manager-openapi-types.gen.go $@
118121

119122
$(SERVER): $(OPENAPI_PATH) ## generate server API from OpenAPI specs
120123
mkdir -p $(API_GEN_FOLDER)
121-
oapi-codegen --config=api/openapi/server.cfg.yaml $<
124+
$(OAPI_CODEGEN_CMD) --config=api/openapi/server.cfg.yaml $<
122125
mv edge-infrastructure-manager-openapi-server.gen.go $@
123126

124127
$(CLIENT): $(OPENAPI_PATH) ## generate client API from OpenAPI specs
125128
mkdir -p $(API_GEN_FOLDER)
126-
oapi-codegen --config=api/openapi/client.cfg.yaml $<
129+
$(OAPI_CODEGEN_CMD) --config=api/openapi/client.cfg.yaml $<
127130
mv edge-infrastructure-manager-openapi-client.gen.go $@
128131

129132
go-build: $(OUT_DIR) ## go build

apiv2/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.9.2
1+
2.9.3-dev

0 commit comments

Comments
 (0)