@@ -311,7 +311,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
311311 }
312312 }
313313
314- err = installComponents (ctx , opts , rt )
314+ err = installComponents (ctx , opts , rt )
315315 if err != nil {
316316 return err
317317 }
@@ -320,11 +320,11 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
320320 fullGsPath := opts .GsCloneOpts .FS .Join (opts .GsCloneOpts .FS .Root (), gsPath )[1 :]
321321
322322 if err = RunGitSourceCreate (ctx , & GitSourceCreateOptions {
323- InsCloneOpts : opts .InsCloneOpts ,
324- GsCloneOpts : opts .GsCloneOpts ,
325- GsName : store .Get ().GitSourceName ,
326- RuntimeName : opts .RuntimeName ,
327- FullGsPath : fullGsPath ,
323+ InsCloneOpts : opts .InsCloneOpts ,
324+ GsCloneOpts : opts .GsCloneOpts ,
325+ GsName : store .Get ().GitSourceName ,
326+ RuntimeName : opts .RuntimeName ,
327+ FullGsPath : fullGsPath ,
328328 CreateDemoWorkflowTemplate : true ,
329329 }); err != nil {
330330 return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
@@ -335,13 +335,13 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
335335 }
336336 mpCloneOpts .Parse ()
337337 if err = RunGitSourceCreate (ctx , & GitSourceCreateOptions {
338- InsCloneOpts : opts .InsCloneOpts ,
339- GsCloneOpts : mpCloneOpts ,
340- GsName : store .Get ().MarketplaceGitSourceName ,
341- RuntimeName : opts .RuntimeName ,
342- FullGsPath : store .Get ().MarketplaceRepo ,
338+ InsCloneOpts : opts .InsCloneOpts ,
339+ GsCloneOpts : mpCloneOpts ,
340+ GsName : store .Get ().MarketplaceGitSourceName ,
341+ RuntimeName : opts .RuntimeName ,
342+ FullGsPath : store .Get ().MarketplaceRepo ,
343343 CreateDemoWorkflowTemplate : false ,
344- Include : "**/workflowTemplate.yaml" ,
344+ Include : "**/workflowTemplate.yaml" ,
345345 }); err != nil {
346346 return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
347347 }
@@ -712,7 +712,7 @@ func RunRuntimeUpgrade(ctx context.Context, opts *RuntimeUpgradeOptions) error {
712712 return err
713713 }
714714
715- curRt , err := runtime .Load (fs , fs .Join (apstore .Default .BootsrtrapDir , store . Get (). RuntimeFilename ))
715+ curRt , err := runtime .Load (fs , fs .Join (apstore .Default .BootsrtrapDir , opts . RuntimeName + ".yaml" ))
716716 if err != nil {
717717 return fmt .Errorf ("failed to load current runtime definition: %w" , err )
718718 }
@@ -846,7 +846,7 @@ func createEventsReporter(ctx context.Context, cloneOpts *git.CloneOptions, opts
846846 Type : application .AppTypeDirectory ,
847847 URL : cloneOpts .URL () + "/" + resPath ,
848848 }
849- if err := appDef .CreateApp (ctx , opts .KubeFactory , cloneOpts , opts .RuntimeName , store .Get ().CFComponentType ,"" , "" ); err != nil {
849+ if err := appDef .CreateApp (ctx , opts .KubeFactory , cloneOpts , opts .RuntimeName , store .Get ().CFComponentType , "" , "" ); err != nil {
850850 return err
851851 }
852852
0 commit comments