From 47344fade26d26aef30d28f4bdab7e4f74014f26 Mon Sep 17 00:00:00 2001 From: Pablo Baeza Date: Thu, 2 Apr 2020 11:44:06 -0300 Subject: [PATCH] Update external gateway URL by option (rerun) Add config gateway url by default and overwrite generate url when exist. (rerun) --- garden-service/src/plugins/openfaas/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garden-service/src/plugins/openfaas/build.ts b/garden-service/src/plugins/openfaas/build.ts index 77a3c728bf..85cb1827df 100644 --- a/garden-service/src/plugins/openfaas/build.ts +++ b/garden-service/src/plugins/openfaas/build.ts @@ -100,5 +100,5 @@ function getExternalGatewayUrl(provider: OpenFaasProvider) { const k8sProvider = getK8sProvider(provider.dependencies) const hostname = provider.config.hostname const ingressPort = k8sProvider.config.ingressHttpPort - return `http://${hostname}:${ingressPort}` + return provider.config.gatewayUrl || `http://${hostname}:${ingressPort}` }