@@ -608,6 +608,7 @@ func RunRuntimeInstall(ctx context.Context, opts *RuntimeInstallOptions) error {
608608 IngressController : & ingressControllerName ,
609609 ComponentNames : componentNames ,
610610 Repo : & opts .InsCloneOpts .Repo ,
611+ Recover : & opts .FromRepo ,
611612 })
612613 handleCliStep (reporter .InstallStepCreateRuntimeOnPlatform , "Creating runtime on platform" , err , false , true )
613614 if err != nil {
@@ -2372,25 +2373,27 @@ func getInstallationFromRepoApproval(ctx context.Context, opts *RuntimeInstallOp
23722373
23732374 printPreviousVsNewConfigsToUser (previousConfigurations , newConfigurations )
23742375
2375- templates := & promptui.SelectTemplates {
2376- Selected : "{{ . | yellow }} " ,
2377- }
2376+ if ! store .Get ().Silent {
2377+ templates := & promptui.SelectTemplates {
2378+ Selected : "{{ . | yellow }} " ,
2379+ }
23782380
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 )
23802382
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+ }
23862388
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+ }
23912393
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+ }
23942397 }
23952398
23962399 return nil
0 commit comments