@@ -779,7 +779,7 @@ func initializeInstall(ctx context.Context, flags InstallCmdFlags, rc runtimecon
779
779
780
780
func installAndStartCluster (ctx context.Context , flags InstallCmdFlags , rc runtimeconfig.RuntimeConfig , mutate func (* k0sv1beta1.ClusterConfig ) error ) (* k0sv1beta1.ClusterConfig , error ) {
781
781
loading := spinner .Start ()
782
- loading .Infof ("Installing node " )
782
+ loading .Infof ("Installing runtime " )
783
783
logrus .Debugf ("creating k0s configuration file" )
784
784
785
785
eucfg , err := helpers .ParseEndUserConfig (flags .overrides )
@@ -789,36 +789,36 @@ func installAndStartCluster(ctx context.Context, flags InstallCmdFlags, rc runti
789
789
790
790
cfg , err := k0s .WriteK0sConfig (ctx , flags .networkInterface , flags .airgapBundle , rc .PodCIDR (), rc .ServiceCIDR (), eucfg , mutate )
791
791
if err != nil {
792
- loading .ErrorClosef ("Failed to install node " )
792
+ loading .ErrorClosef ("Failed to install runtime " )
793
793
return nil , fmt .Errorf ("create config file: %w" , err )
794
794
}
795
795
796
796
logrus .Debugf ("creating systemd unit files" )
797
797
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 " )
799
799
return nil , fmt .Errorf ("create systemd unit files: %w" , err )
800
800
}
801
801
802
802
logrus .Debugf ("installing k0s" )
803
803
if err := k0s .Install (rc ); err != nil {
804
- loading .ErrorClosef ("Failed to install node " )
804
+ loading .ErrorClosef ("Failed to install runtime " )
805
805
return nil , fmt .Errorf ("install cluster: %w" , err )
806
806
}
807
807
808
808
logrus .Debugf ("waiting for k0s to be ready" )
809
809
if err := k0s .WaitForK0s (); err != nil {
810
- loading .ErrorClosef ("Failed to install node " )
810
+ loading .ErrorClosef ("Failed to install runtime " )
811
811
return nil , fmt .Errorf ("wait for k0s: %w" , err )
812
812
}
813
813
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" )
816
816
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 )
819
819
}
820
820
821
- loading .Closef ("Node is ready" )
821
+ loading .Closef ("Runtime is ready" )
822
822
return cfg , nil
823
823
}
824
824
@@ -834,7 +834,7 @@ func installAddons(ctx context.Context, kcli client.Client, mcli metadata.Interf
834
834
loading = spinner .Start ()
835
835
loading .Infof ("Installing %s" , progress .Name )
836
836
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 :] )
838
838
case apitypes .StateFailed :
839
839
loading .ErrorClosef ("Failed to install %s" , progress .Name )
840
840
}
0 commit comments