mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 21:29:02 +00:00
feat(deploy): Recreate container when pull_policy set to Always (#100)
This commit is contained in:
1 parent
87c7889c2e
commit
a54555cd13
3 files changed
+52
-5
No files matched your search
@@ -26,7 +26,10 @@ func EvalContainerSpecChange(current api.ServiceSpec, new api.ServiceSpec) Conta
|
||||
return ContainerNeedsRecreate
|
||||
}
|
||||
|
||||
// Pull policy doesn't affect the container configuration.
|
||||
// If pull policy is set to always, the container needs to be recreated.
|
||||
if new.Container.PullPolicy == api.PullPolicyAlways {
|
||||
return ContainerNeedsRecreate
|
||||
}
|
||||
new.Container.PullPolicy = current.Container.PullPolicy
|
||||
|
||||
// Save mutable container resources that can be updated without recreation.
|
||||
|
||||
Reference in new issue
Block a user