feat(compose): add ContainerSpec.PullPolicy field to define when to pull image from registry

This commit is contained in:
Pavel Sviderski
2025-03-25 11:03:19 +10:00
parent 58b51b974c
commit ffef41081b
2 changed files with 17 additions and 0 deletions
+4
View File
@@ -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
}