mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-08 14:14:52 +00:00
refactor: postpone spec resolver initialisation when creating Deployment
This commit is contained in:
1 parent
2d923380a3
commit
58b51b974c
10 files changed
+48
-90
No files matched your search
@@ -42,11 +42,7 @@ func (cli *Client) RunService(
|
||||
}
|
||||
}
|
||||
|
||||
deployment, err := cli.NewDeployment(ctx, spec, &deploy.RollingStrategy{MachineFilter: filter})
|
||||
if err != nil {
|
||||
return resp, fmt.Errorf("create deployment: %w", err)
|
||||
}
|
||||
|
||||
deployment := cli.NewDeployment(spec, &deploy.RollingStrategy{MachineFilter: filter})
|
||||
plan, err := deployment.Plan(ctx)
|
||||
if err != nil {
|
||||
return resp, fmt.Errorf("plan deployment: %w", err)
|
||||
|
||||
Reference in new issue
Block a user