Skip to content

Commit

Permalink
Merge pull request #620 from garden-io/openfaas-quickfix
Browse files Browse the repository at this point in the history
fix(openfaas): error when getting status of func not created by Garden
  • Loading branch information
edvald authored Mar 12, 2019
2 parents b741933 + d7da089 commit b7be412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion garden-service/src/plugins/openfaas/openfaas.ts
Original file line number Diff line number Diff line change
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 b7be412

Please sign in to comment.