@@ -82,11 +82,11 @@ type InstallCmdFlags struct {
82
82
networkInterface string
83
83
84
84
// guided UI flags
85
- managerPort int
86
- guidedUI bool
87
- tlsCertFile string
88
- tlsKeyFile string
89
- hostname string
85
+ enableManagerExperience bool
86
+ managerPort int
87
+ tlsCertFile string
88
+ tlsKeyFile string
89
+ hostname string
90
90
91
91
// TODO: move to substruct
92
92
license * kotsv1beta1.License
@@ -142,7 +142,7 @@ func InstallCmd(ctx context.Context, name string) *cobra.Command {
142
142
metricsReporter .ReportInstallationSucceeded (ctx )
143
143
144
144
// If in guided UI mode, keep the process running until interrupted
145
- if flags .guidedUI {
145
+ if flags .enableManagerExperience {
146
146
logrus .Info ("" )
147
147
logrus .Info ("Installation complete. Press Ctrl+C to exit." )
148
148
logrus .Info ("" )
@@ -159,7 +159,7 @@ func InstallCmd(ctx context.Context, name string) *cobra.Command {
159
159
if err := addInstallAdminConsoleFlags (cmd , & flags ); err != nil {
160
160
panic (err )
161
161
}
162
- if err := addGuidedUIFlags (cmd , & flags ); err != nil {
162
+ if err := addManagerExperienceFlags (cmd , & flags ); err != nil {
163
163
panic (err )
164
164
}
165
165
@@ -214,14 +214,14 @@ func addInstallAdminConsoleFlags(cmd *cobra.Command, flags *InstallCmdFlags) err
214
214
return nil
215
215
}
216
216
217
- func addGuidedUIFlags (cmd * cobra.Command , flags * InstallCmdFlags ) error {
218
- cmd .Flags ().BoolVarP (& flags .guidedUI , "guided-ui " , "g" , false , "Run the installation in guided UI mode ." )
217
+ func addManagerExperienceFlags (cmd * cobra.Command , flags * InstallCmdFlags ) error {
218
+ cmd .Flags ().BoolVar (& flags .enableManagerExperience , "manager-experience " , false , "Run the browser-based installation experience ." )
219
219
cmd .Flags ().IntVar (& flags .managerPort , "manager-port" , ecv1beta1 .DefaultManagerPort , "Port on which the Manager will be served" )
220
220
cmd .Flags ().StringVar (& flags .tlsCertFile , "tls-cert" , "" , "Path to the TLS certificate file" )
221
221
cmd .Flags ().StringVar (& flags .tlsKeyFile , "tls-key" , "" , "Path to the TLS key file" )
222
222
cmd .Flags ().StringVar (& flags .hostname , "hostname" , "" , "Hostname to use for TLS configuration" )
223
223
224
- if err := cmd .Flags ().MarkHidden ("guided-ui " ); err != nil {
224
+ if err := cmd .Flags ().MarkHidden ("manager-experience " ); err != nil {
225
225
return err
226
226
}
227
227
if err := cmd .Flags ().MarkHidden ("manager-port" ); err != nil {
@@ -279,7 +279,7 @@ func preRunInstall(cmd *cobra.Command, flags *InstallCmdFlags) error {
279
279
}
280
280
}
281
281
282
- if flags .guidedUI {
282
+ if flags .enableManagerExperience {
283
283
configChan := make (chan * apitypes.InstallationConfig )
284
284
defer close (configChan )
285
285
@@ -636,7 +636,7 @@ func runInstall(ctx context.Context, name string, flags InstallCmdFlags, metrics
636
636
logrus .Warnf ("Unable to create host support bundle: %v" , err )
637
637
}
638
638
639
- if flags .guidedUI {
639
+ if flags .enableManagerExperience {
640
640
if err := markUIInstallComplete (flags .adminConsolePassword , flags .managerPort ); err != nil {
641
641
return fmt .Errorf ("unable to mark ui install complete: %w" , err )
642
642
}
0 commit comments