refactor: postpone spec resolver initialisation when creating Deployment

This commit is contained in:
Pavel Sviderski committed 2025-03-24 21:56:30 +10:00
1 parent 2d923380a3
commit 58b51b974c
10 files changed
+48 -90

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ func (d *Deployment) Plan(ctx context.Context) (deploy.SequenceOperation, error)
}
// TODO: properly handle depends_on conditions in the service deployment plan as the first operation.
deployment, err := deploy.NewDeployment(ctx, d.Client, spec, nil)
deployment := deploy.NewDeployment(d.Client, spec, nil)
if err != nil {
return fmt.Errorf("create deployment for service '%s': %w", name, err)
}