Closed martindekov closed 4 years ago
Currently --disable-stack-pull is a flag of build command which disables the pulling of templates before build phase. The default behaviour if:
--disable-stack-pull
build
configuration: templates: - name: golang-middleware
exists the template will try to be fetched every time we build.
Rename --disable-stack-pull to --enable-stack-pull so only when flag is present the build will try to pull templates.
--enable-stack-pull
Tries to pull templates every time.
Revert the logic of the flag.
1.Put configuration with template 2.Build 3.Build again 4.See templates are trying to be fetched every time
Conversation around this was spawn in Slack.
faas-cli version
docker version
When adding the feature to the build I though this should be the default case. But we can easily change it.
Currently
--disable-stack-pull
is a flag ofbuild
command which disables the pulling of templates before build phase. The default behaviour if:exists the template will try to be fetched every time we build.
Expected Behaviour
Rename
--disable-stack-pull
to--enable-stack-pull
so only when flag is present the build will try to pull templates.Current Behaviour
Tries to pull templates every time.
Possible Solution
Revert the logic of the flag.
Steps to Reproduce (for bugs)
1.Put configuration with template 2.Build 3.Build again 4.See templates are trying to be fetched every time
Context
Conversation around this was spawn in Slack.
Your Environment
faas-cli version
): N/Adocker version
): N/A