Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions go/models/function_config.go

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

3 changes: 2 additions & 1 deletion go/porcelain/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -840,11 +840,12 @@ func bundleFromManifest(ctx context.Context, manifestFile *os.File, observer Dep
}
}

hasConfig := function.DisplayName != "" || function.Generator != "" || len(routes) > 0 || len(excludedRoutes) > 0 || len(function.BuildData) > 0 || function.Priority != 0 || function.TrafficRules != nil || function.Timeout != 0 || len(function.EventSubscriptions) > 0 || function.Region != ""
hasConfig := function.DisplayName != "" || function.Generator != "" || len(routes) > 0 || len(excludedRoutes) > 0 || len(function.BuildData) > 0 || function.Priority != 0 || function.TrafficRules != nil || function.Timeout != 0 || len(function.EventSubscriptions) > 0 || function.Region != "" || function.Memory != 0
if hasConfig {
cfg := models.FunctionConfig{
DisplayName: function.DisplayName,
Generator: function.Generator,
Memory: function.Memory,
Region: function.Region,
Routes: routes,
ExcludedRoutes: excludedRoutes,
Expand Down
1 change: 1 addition & 0 deletions go/porcelain/functions_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type functionsManifest struct {

type functionsManifestEntry struct {
MainFile string `json:"mainFile"`
Memory int64 `json:"memory"`
Name string `json:"name"`
Path string `json:"path"`
Region string `json:"region"`
Expand Down
4 changes: 4 additions & 0 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5555,6 +5555,10 @@ definitions:
type: string
build_data:
type: object
memory:
type: integer
description: |
The function's memory allocation in MB.
routes:
type: array
items:
Expand Down
Loading