openfaas / faasd

A lightweight & portable faas engine
https://store.openfaas.com/l/serverless-for-everyone-else
Other
3.01k stars 214 forks source link

[Feature] add PullPolicy flag / option #54

Closed alexellis closed 4 years ago

alexellis commented 4 years ago

[Feature] add PullPolicy flag / option

Expected Behaviour

Some users prefer to use latest for their images and not to use differing tags, this feature would always pull an image even if it was available locally, in that way, they don't have to change the tag.

Current Behaviour

Possible via:

git init
git add .
git commit -m "Change"
faas-cli up --tag=sha

Or editing the tag

Possible Solution

Add a configuration to the systemd unit file for the flag, and accept it via faas-cli install

Pull code - https://github.com/openfaas/faasd/blob/master/pkg/provider/handlers/deploy.go#L78

alexellis commented 4 years ago

Fixed in: https://github.com/openfaas/faasd/releases/tag/0.8.0

This is now the default behaviour.