Feat: support offline dryrun with deploy step (#6234)

This commit is contained in:
qiaozp
2023-07-26 18:09:01 +08:00
committed by GitHub
parent f0357fdc8f
commit 00ae0c9494
14 changed files with 132 additions and 57 deletions

View File

@@ -42,7 +42,6 @@ import (
"github.com/oam-dev/kubevela/apis/types"
"github.com/oam-dev/kubevela/pkg/appfile/dryrun"
"github.com/oam-dev/kubevela/pkg/oam"
"github.com/oam-dev/kubevela/pkg/utils/common"
cmdutil "github.com/oam-dev/kubevela/pkg/utils/util"
)
@@ -119,7 +118,7 @@ func (d *debugOpts) debugApplication(ctx context.Context, wargs *WorkflowArgs, c
return d.debugWorkflow(ctx, wargs, cli, pd, ioStreams)
}
dryRunOpt := dryrun.NewDryRunOption(cli, config, pd, []oam.Object{}, false)
dryRunOpt := dryrun.NewDryRunOption(cli, config, pd, []*unstructured.Unstructured{}, false)
comps, _, err := dryRunOpt.ExecuteDryRun(ctx, app)
if err != nil {
ioStreams.Info(color.RedString("%s%s", emojiFail, err.Error()))