Skip to content

Commit

Permalink
Re-vendor for constraints
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  • Loading branch information
alexellis committed Sep 4, 2017
1 parent 0bdfbcb commit 26cfe46
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 89 deletions.
11 changes: 6 additions & 5 deletions proxy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ func DeployFunction(fprocess string, gateway string, functionName string, image

// TODO: allow registry auth to be specified or read from local Docker credentials store
req := requests.CreateFunctionRequest{
EnvProcess: fprocessTemplate,
Image: image,
Network: "func_functions", // todo: specify network as an override
Service: functionName,
EnvVars: envVars,
EnvProcess: fprocessTemplate,
Image: image,
Network: "func_functions", // todo: specify network as an override
Service: functionName,
EnvVars: envVars,
Constraints: constraints,
}

reqBytes, _ := json.Marshal(&req)
Expand Down
174 changes: 115 additions & 59 deletions vendor/github.com/alexellis/faas/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 17 additions & 25 deletions vendor/github.com/alexellis/faas/gateway/requests/requests.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions vendor/github.com/alexellis/faas/gateway/vendor.conf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 26cfe46

Please sign in to comment.