From 1604f236ebdc530320e1ac1fba695f223742e086 Mon Sep 17 00:00:00 2001 From: Gary Date: Thu, 31 Oct 2024 19:53:09 +0800 Subject: [PATCH] chore(api-gateway): pass minio info in env (#1146) Because api gateway need the minio info to use `blob` plugin This commit add minio info in env --- charts/core/templates/api-gateway/configmap.yaml | 4 ++++ docker-compose.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/charts/core/templates/api-gateway/configmap.yaml b/charts/core/templates/api-gateway/configmap.yaml index 53c561b2..ba856bb3 100644 --- a/charts/core/templates/api-gateway/configmap.yaml +++ b/charts/core/templates/api-gateway/configmap.yaml @@ -48,6 +48,10 @@ data: REGISTRY_HOST={{ template "core.registry" . }} REGISTRY_PORT={{ template "core.registry.port" . }} + # minio + MINIO_HOST={{ template "core.minio" . }} + MINIO_PORT={{ template "core.minio.port" . }} + # Additional Hosts {{- range $host := .Values.apiGateway.additionalHosts }} {{ $host.name }}_HOST={{ $host.host }} diff --git a/docker-compose.yml b/docker-compose.yml index 1aab5843..2f59ac30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -37,6 +37,8 @@ services: JAEGER_PORT: ${JAEGER_LISTEN_THRIFT_PORT} REGISTRY_HOST: ${REGISTRY_HOST} REGISTRY_PORT: ${REGISTRY_PORT} + MINIO_HOST: ${MINIO_HOST} + MINIO_PORT: ${MINIO_PORT} ports: - ${API_GATEWAY_PORT}:${API_GATEWAY_PORT} - ${API_GATEWAY_STATS_PORT}:${API_GATEWAY_STATS_PORT}