@@ -311,7 +311,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
311
311
}
312
312
}
313
313
314
- err = installComponents (ctx , opts , rt )
314
+ err = installComponents (ctx , opts , rt )
315
315
if err != nil {
316
316
return err
317
317
}
@@ -320,11 +320,11 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
320
320
fullGsPath := opts .GsCloneOpts .FS .Join (opts .GsCloneOpts .FS .Root (), gsPath )[1 :]
321
321
322
322
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 ,
328
328
CreateDemoWorkflowTemplate : true ,
329
329
}); err != nil {
330
330
return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
@@ -335,13 +335,13 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
335
335
}
336
336
mpCloneOpts .Parse ()
337
337
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 ,
343
343
CreateDemoWorkflowTemplate : false ,
344
- Include : "**/workflowTemplate.yaml" ,
344
+ Include : "**/workflowTemplate.yaml" ,
345
345
}); err != nil {
346
346
return fmt .Errorf ("failed to create `%s`: %w" , store .Get ().GitSourceName , err )
347
347
}
@@ -712,7 +712,7 @@ func RunRuntimeUpgrade(ctx context.Context, opts *RuntimeUpgradeOptions) error {
712
712
return err
713
713
}
714
714
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" ))
716
716
if err != nil {
717
717
return fmt .Errorf ("failed to load current runtime definition: %w" , err )
718
718
}
@@ -846,7 +846,7 @@ func createEventsReporter(ctx context.Context, cloneOpts *git.CloneOptions, opts
846
846
Type : application .AppTypeDirectory ,
847
847
URL : cloneOpts .URL () + "/" + resPath ,
848
848
}
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 {
850
850
return err
851
851
}
852
852
0 commit comments