mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
refactor: compose deployment with pluggable spec resolver, basic test
This commit is contained in:
1 parent
fb01604d21
commit
041d51b74f
10 files changed
+185
-15
No files matched your search
@@ -67,7 +67,12 @@ func deploy(ctx context.Context, uncli *cli.CLI, opts deployOptions) error {
|
||||
}
|
||||
defer clusterClient.Close()
|
||||
|
||||
plan, err := client.PlanComposeDeployment(ctx, project, clusterClient)
|
||||
composeDeploy, err := clusterClient.NewComposeDeployment(ctx, project)
|
||||
if err != nil {
|
||||
return fmt.Errorf("create compose deployment: %w", err)
|
||||
}
|
||||
|
||||
plan, err := composeDeploy.Plan(ctx)
|
||||
if err != nil {
|
||||
return fmt.Errorf("plan deployment: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user