@@ -608,6 +608,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
608
608
IngressController : & ingressControllerName ,
609
609
ComponentNames : componentNames ,
610
610
Repo : & opts .InsCloneOpts .Repo ,
611
+ Recover : & opts .FromRepo ,
611
612
})
612
613
handleCliStep (reporter .InstallStepCreateRuntimeOnPlatform , "Creating runtime on platform" , err , false , true )
613
614
if err != nil {
@@ -2372,25 +2373,27 @@ func getInstallationFromRepoApproval(ctx context.Context, opts *RuntimeInstallOp
2372
2373
2373
2374
printPreviousVsNewConfigsToUser (previousConfigurations , newConfigurations )
2374
2375
2375
- templates := & promptui.SelectTemplates {
2376
- Selected : "{{ . | yellow }} " ,
2377
- }
2376
+ if ! store .Get ().Silent {
2377
+ templates := & promptui.SelectTemplates {
2378
+ Selected : "{{ . | yellow }} " ,
2379
+ }
2378
2380
2379
- labelStr := fmt .Sprintf ("%vDo you wish to proceed?%v" , CYAN , COLOR_RESET )
2381
+ labelStr := fmt .Sprintf ("%vDo you wish to proceed?%v" , CYAN , COLOR_RESET )
2380
2382
2381
- prompt := promptui.Select {
2382
- Label : labelStr ,
2383
- Items : []string {"Yes" , "No" },
2384
- Templates : templates ,
2385
- }
2383
+ prompt := promptui.Select {
2384
+ Label : labelStr ,
2385
+ Items : []string {"Yes" , "No" },
2386
+ Templates : templates ,
2387
+ }
2386
2388
2387
- _ , result , err := prompt .Run ()
2388
- if err != nil {
2389
- return err
2390
- }
2389
+ _ , result , err := prompt .Run ()
2390
+ if err != nil {
2391
+ return err
2392
+ }
2391
2393
2392
- if result == "No" {
2393
- return fmt .Errorf ("installation from existing repo was cancelled" )
2394
+ if result == "No" {
2395
+ return fmt .Errorf ("installation from existing repo was cancelled" )
2396
+ }
2394
2397
}
2395
2398
2396
2399
return nil
0 commit comments