feat: implement --pull policy for run command: always, missing, never

This commit is contained in:
Pavel Sviderski committed 2025-03-27 15:06:32 +10:00
1 parent 7c7530f977
commit 641b11a92d
3 files changed
+34 -7

No files matched your search

+1
View File
@@ -48,6 +48,7 @@ func (s *RollingStrategy) Plan(
// planReplicated creates a plan for a replicated service deployment.
// For replicated services, we want to maintain a specific number of containers (replicas) across the available machines
// in the cluster.
// TODO: schedule containers only on machines that contain the image if pull policy is set to 'never'.
func (s *RollingStrategy) planReplicated(
ctx context.Context, cli api.MachineClient, svc *api.Service, spec api.ServiceSpec,
) (Plan, error) {