mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: applications should be aware of reserved writable space (#1083)
Similar to FN_MEMORY, we pass FN_TMPSIZE to function config.
This commit is contained in:
@@ -154,6 +154,7 @@ func buildConfig(app *models.App, route *models.Route) models.Config {
|
||||
// TODO: might be a good idea to pass in: "FN_BASE_PATH" = fmt.Sprintf("/r/%s", appName) || "/" if using DNS entries per app
|
||||
conf["FN_MEMORY"] = fmt.Sprintf("%d", route.Memory)
|
||||
conf["FN_TYPE"] = route.Type
|
||||
conf["FN_TMPSIZE"] = fmt.Sprintf("%d", route.TmpFsSize)
|
||||
|
||||
CPUs := route.CPUs.String()
|
||||
if CPUs != "" {
|
||||
|
||||
Reference in New Issue
Block a user