Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(openfaas): error when getting status of func not created by Garden #620

Merged
merged 1 commit into from
Mar 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(openfaas): error when getting status of func not created by Garden
edvald authored and thsig committed Mar 12, 2019
commit d7da0893ab112055ecea964e6f37739abd68fe64
3 changes: 2 additions & 1 deletion garden-service/src/plugins/openfaas/openfaas.ts
Original file line number Diff line number Diff line change
@@ -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 {