@@ -114,8 +114,8 @@ func NewCmdApply(apf *applyPlanFlags) *cobra.Command {
114
114
func runApply (flags * applyFlags , userVersion string ) error {
115
115
116
116
// Start with the basics, verify that the cluster is healthy and get the configuration from the cluster (using the ConfigMap)
117
- klog .V (1 ).Infof ("[upgrade/apply] verifying health of cluster" )
118
- klog .V (1 ).Infof ("[upgrade/apply] retrieving configuration from cluster" )
117
+ klog .V (1 ).Infoln ("[upgrade/apply] verifying health of cluster" )
118
+ klog .V (1 ).Infoln ("[upgrade/apply] retrieving configuration from cluster" )
119
119
client , versionGetter , cfg , err := enforceRequirements (flags .applyPlanFlags , flags .dryRun , userVersion )
120
120
if err != nil {
121
121
return err
@@ -127,7 +127,7 @@ func runApply(flags *applyFlags, userVersion string) error {
127
127
}
128
128
129
129
// Validate requested and validate actual version
130
- klog .V (1 ).Infof ("[upgrade/apply] validating requested and actual version" )
130
+ klog .V (1 ).Infoln ("[upgrade/apply] validating requested and actual version" )
131
131
if err := configutil .NormalizeKubernetesVersion (& cfg .ClusterConfiguration ); err != nil {
132
132
return err
133
133
}
@@ -143,7 +143,7 @@ func runApply(flags *applyFlags, userVersion string) error {
143
143
}
144
144
145
145
// Enforce the version skew policies
146
- klog .V (1 ).Infof ("[upgrade/version] enforcing version skew policies" )
146
+ klog .V (1 ).Infoln ("[upgrade/version] enforcing version skew policies" )
147
147
if err := EnforceVersionPolicies (cfg .KubernetesVersion , newK8sVersion , flags , versionGetter ); err != nil {
148
148
return errors .Wrap (err , "[upgrade/version] FATAL" )
149
149
}
@@ -159,7 +159,7 @@ func runApply(flags *applyFlags, userVersion string) error {
159
159
160
160
// Use a prepuller implementation based on creating DaemonSets
161
161
// and block until all DaemonSets are ready; then we know for sure that all control plane images are cached locally
162
- klog .V (1 ).Infof ("[upgrade/apply] creating prepuller" )
162
+ klog .V (1 ).Infoln ("[upgrade/apply] creating prepuller" )
163
163
prepuller := upgrade .NewDaemonSetPrepuller (client , waiter , & cfg .ClusterConfiguration )
164
164
componentsToPrepull := constants .ControlPlaneComponents
165
165
if cfg .Etcd .External == nil && flags .etcdUpgrade {
@@ -170,13 +170,13 @@ func runApply(flags *applyFlags, userVersion string) error {
170
170
}
171
171
172
172
// Now; perform the upgrade procedure
173
- klog .V (1 ).Infof ("[upgrade/apply] performing upgrade" )
173
+ klog .V (1 ).Infoln ("[upgrade/apply] performing upgrade" )
174
174
if err := PerformControlPlaneUpgrade (flags , client , waiter , cfg ); err != nil {
175
175
return errors .Wrap (err , "[upgrade/apply] FATAL" )
176
176
}
177
177
178
178
// Upgrade RBAC rules and addons.
179
- klog .V (1 ).Infof ("[upgrade/postupgrade] upgrading RBAC rules and addons" )
179
+ klog .V (1 ).Infoln ("[upgrade/postupgrade] upgrading RBAC rules and addons" )
180
180
if err := upgrade .PerformPostUpgradeTasks (client , cfg , newK8sVersion , flags .dryRun ); err != nil {
181
181
return errors .Wrap (err , "[upgrade/postupgrade] FATAL post-upgrade error" )
182
182
}
0 commit comments