From 92d66fa82b33836a4ad59ae6f17df5a79ba5ceef Mon Sep 17 00:00:00 2001 From: Vishal Date: Mon, 18 Mar 2019 15:52:29 +0530 Subject: [PATCH] Configurable zero pool size in case of newdeploy function (#1121) It should be possible to keep zero pool size when the environment is created so that there are no idle resources for a newdeploy function. Fixes: https://github.com/fission/fission/issues/1104 --- fission/environment.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fission/environment.go b/fission/environment.go index 2c67da4d..e7658212 100644 --- a/fission/environment.go +++ b/fission/environment.go @@ -93,6 +93,9 @@ func envCreate(c *cli.Context) error { envBuildCmd = "build" } } + if c.IsSet("poolsize") { + envVersion = 3 + } keepArchive := c.Bool("keeparchive")