mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
refactor: postpone spec resolver initialisation when creating Deployment
This commit is contained in:
@@ -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