Skip to content

Commit

Permalink
fix(openfaas): error when getting status of func not created by Garden
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and thsig committed Mar 12, 2019
1 parent b741933 commit d7da089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion garden-service/src/plugins/openfaas/openfaas.ts
Expand Up @@ -350,7 +350,8 @@ async function getServiceStatus({ ctx, module, service }: GetServiceStatusParams
}

const container: any = findByName(deployment.spec.template.spec.containers, service.name)
const version = findByName<any>(container.env, "GARDEN_VERSION").value
const envVersion = findByName<any>(container.env, "GARDEN_VERSION")
const version = envVersion ? envVersion.value : undefined
const status = await checkDeploymentStatus(api, namespace, deployment)

return {
Expand Down

0 comments on commit d7da089

Please sign in to comment.