@@ -779,7 +779,7 @@ func initializeInstall(ctx context.Context, flags InstallCmdFlags, rc runtimecon
779779
780780func installAndStartCluster (ctx context.Context , flags InstallCmdFlags , rc runtimeconfig.RuntimeConfig , mutate func (* k0sv1beta1.ClusterConfig ) error ) (* k0sv1beta1.ClusterConfig , error ) {
781781 loading := spinner .Start ()
782- loading .Infof ("Installing node " )
782+ loading .Infof ("Installing runtime " )
783783 logrus .Debugf ("creating k0s configuration file" )
784784
785785 eucfg , err := helpers .ParseEndUserConfig (flags .overrides )
@@ -789,36 +789,36 @@ func installAndStartCluster(ctx context.Context, flags InstallCmdFlags, rc runti
789789
790790 cfg , err := k0s .WriteK0sConfig (ctx , flags .networkInterface , flags .airgapBundle , rc .PodCIDR (), rc .ServiceCIDR (), eucfg , mutate )
791791 if err != nil {
792- loading .ErrorClosef ("Failed to install node " )
792+ loading .ErrorClosef ("Failed to install runtime " )
793793 return nil , fmt .Errorf ("create config file: %w" , err )
794794 }
795795
796796 logrus .Debugf ("creating systemd unit files" )
797797 if err := hostutils .CreateSystemdUnitFiles (ctx , logrus .StandardLogger (), rc , false ); err != nil {
798- loading .ErrorClosef ("Failed to install node " )
798+ loading .ErrorClosef ("Failed to install runtime " )
799799 return nil , fmt .Errorf ("create systemd unit files: %w" , err )
800800 }
801801
802802 logrus .Debugf ("installing k0s" )
803803 if err := k0s .Install (rc ); err != nil {
804- loading .ErrorClosef ("Failed to install node " )
804+ loading .ErrorClosef ("Failed to install runtime " )
805805 return nil , fmt .Errorf ("install cluster: %w" , err )
806806 }
807807
808808 logrus .Debugf ("waiting for k0s to be ready" )
809809 if err := k0s .WaitForK0s (); err != nil {
810- loading .ErrorClosef ("Failed to install node " )
810+ loading .ErrorClosef ("Failed to install runtime " )
811811 return nil , fmt .Errorf ("wait for k0s: %w" , err )
812812 }
813813
814- loading .Infof ("Waiting for node " )
815- logrus .Debugf ("waiting for node to be ready" )
814+ loading .Infof ("Waiting for runtime " )
815+ logrus .Debugf ("waiting for runtime to be ready" )
816816 if err := waitForNode (ctx ); err != nil {
817- loading .ErrorClosef ("Node failed to become ready" )
818- return nil , fmt .Errorf ("wait for node : %w" , err )
817+ loading .ErrorClosef ("Runtime failed to become ready" )
818+ return nil , fmt .Errorf ("wait for runtime : %w" , err )
819819 }
820820
821- loading .Closef ("Node is ready" )
821+ loading .Closef ("Runtime is ready" )
822822 return cfg , nil
823823}
824824
@@ -834,7 +834,7 @@ func installAddons(ctx context.Context, kcli client.Client, mcli metadata.Interf
834834 loading = spinner .Start ()
835835 loading .Infof ("Installing %s" , progress .Name )
836836 case apitypes .StateSucceeded :
837- loading .Closef ("%s is ready" , progress .Name )
837+ loading .Closef ("%s is ready" , strings . ToUpper ( progress .Name [: 1 ]) + progress . Name [ 1 :] )
838838 case apitypes .StateFailed :
839839 loading .ErrorClosef ("Failed to install %s" , progress .Name )
840840 }
0 commit comments