From d7cf528e09383436a5edb8553af295257fb33de4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellen=20K=C3=B6rbes?= Date: Sun, 24 Feb 2019 01:01:57 +0700 Subject: [PATCH] fix: openfaas plugin bug --- garden-service/src/plugins/openfaas/openfaas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garden-service/src/plugins/openfaas/openfaas.ts b/garden-service/src/plugins/openfaas/openfaas.ts index cca52b8658..454c12c5de 100644 --- a/garden-service/src/plugins/openfaas/openfaas.ts +++ b/garden-service/src/plugins/openfaas/openfaas.ts @@ -349,7 +349,7 @@ async function getServiceStatus({ ctx, module, service }: GetServiceStatusParams } } - const container: any = findByName(deployment.spec.template.spec.containers, "hello-function") + const container: any = findByName(deployment.spec.template.spec.containers, service.name) const version = findByName(container.env, "GARDEN_VERSION").value const status = await checkDeploymentStatus(api, namespace, deployment)