@@ -829,7 +829,9 @@ func runInstall(ctx context.Context, flags InstallCmdFlags, rc runtimeconfig.Run
829
829
logrus .Warnf ("Unable to create host support bundle: %v" , err )
830
830
}
831
831
832
- printSuccessMessage (flags .license , flags .hostname , flags .networkInterface , rc )
832
+ isHeadlessInstall := flags .configValues != "" && flags .adminConsolePassword != ""
833
+
834
+ printSuccessMessage (flags .license , flags .hostname , flags .networkInterface , rc , isHeadlessInstall )
833
835
834
836
return nil
835
837
}
@@ -849,7 +851,6 @@ func getAddonInstallOpts(flags InstallCmdFlags, rc runtimeconfig.RuntimeConfig,
849
851
euCfgSpec = & euCfg .Spec
850
852
}
851
853
852
-
853
854
opts := & addons.InstallOptions {
854
855
ClusterID : flags .clusterID ,
855
856
AdminConsolePwd : flags .adminConsolePassword ,
@@ -1419,11 +1420,16 @@ func normalizeNoPromptToYes(f *pflag.FlagSet, name string) pflag.NormalizedName
1419
1420
return pflag .NormalizedName (name )
1420
1421
}
1421
1422
1422
- func printSuccessMessage (license * kotsv1beta1.License , hostname string , networkInterface string , rc runtimeconfig.RuntimeConfig ) {
1423
+ func printSuccessMessage (license * kotsv1beta1.License , hostname string , networkInterface string , rc runtimeconfig.RuntimeConfig , isHeadlessInstall bool ) {
1423
1424
adminConsoleURL := getAdminConsoleURL (hostname , networkInterface , rc .AdminConsolePort ())
1424
1425
1425
1426
// Create the message content
1426
- message := fmt .Sprintf ("Visit the Admin Console to configure and install %s:" , license .Spec .AppSlug )
1427
+ var message string
1428
+ if isHeadlessInstall {
1429
+ message = fmt .Sprintf ("The Admin Console for %s is available at:" , license .Spec .AppSlug )
1430
+ } else {
1431
+ message = fmt .Sprintf ("Visit the Admin Console to configure and install %s:" , license .Spec .AppSlug )
1432
+ }
1427
1433
1428
1434
// Determine the length of the longest line
1429
1435
longestLine := len (message )
0 commit comments