Skip to content

Commit

Permalink
fix(openfaas): user env variables weren't passed to the function
Browse files Browse the repository at this point in the history
Fixes #1136
  • Loading branch information
edvald committed Sep 3, 2019
1 parent 14eb4ea commit dd1ed8a
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 @@ -200,7 +200,8 @@ async function deployService(params: DeployServiceParams<OpenFaasModule>): Promi
const k8sProvider = getK8sProvider(ctx.provider.dependencies)

// write the stack file again with environment variables
await writeStackFile(<OpenFaasProvider>ctx.provider, k8sProvider, module, runtimeContext.envVars)
const envVars = { ...runtimeContext.envVars, ...module.spec.env }
await writeStackFile(<OpenFaasProvider>ctx.provider, k8sProvider, module, envVars)

// use faas-cli to do the deployment
await faasCli.stdout({
Expand Down

0 comments on commit dd1ed8a

Please sign in to comment.