mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
feat(compose): add ContainerSpec.PullPolicy field to define when to pull image from registry
This commit is contained in:
@@ -51,6 +51,10 @@ func (r *ServiceSpecResolver) applyDefaults(spec *api.ServiceSpec) error {
|
||||
spec.Replicas = 1
|
||||
}
|
||||
|
||||
if spec.Container.PullPolicy == "" {
|
||||
spec.Container.PullPolicy = api.PullPolicyMissing
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user