@@ -153,7 +153,7 @@ func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machi
153
153
return errors .New (msg )
154
154
}
155
155
156
- log . Printf ("Creating machine %v for cluster %v." , machine .Name , cluster .Name )
156
+ klog . Infof ("Creating machine %v for cluster %v." , machine .Name , cluster .Name )
157
157
serverCreateOpts := & packngo.DeviceCreateRequest {
158
158
Hostname : machine .Name ,
159
159
UserData : userdata ,
@@ -173,7 +173,7 @@ func (a *Actuator) Create(ctx context.Context, cluster *clusterv1.Cluster, machi
173
173
}
174
174
175
175
// we need to loop here until the device exists and has an IP address
176
- log . Printf ("Created device %s, waiting for it to be ready" , machine .Name )
176
+ klog . Infof ("Created device %s, waiting for it to be ready" , machine .Name )
177
177
a .waitForMachineReady (device )
178
178
179
179
// add the annotations so that cluster-api knows it is there (also, because it is useful to have)
@@ -202,7 +202,7 @@ func (a *Actuator) Delete(ctx context.Context, cluster *clusterv1.Cluster, machi
202
202
if machine == nil {
203
203
return fmt .Errorf ("cannot delete nil machine" )
204
204
}
205
- log . Printf ("Deleting machine %v for cluster %v." , machine .Name , cluster .Name )
205
+ klog . Infof ("Deleting machine %v for cluster %v." , machine .Name , cluster .Name )
206
206
device , err := a .packetClient .GetDevice (machine )
207
207
if err != nil {
208
208
return fmt .Errorf ("error retrieving machine status %s: %v" , machine .Name , err )
@@ -232,7 +232,7 @@ func (a *Actuator) Update(ctx context.Context, cluster *clusterv1.Cluster, machi
232
232
return fmt .Errorf ("unable to unpack cluster provider: %v" , err )
233
233
}
234
234
235
- log . Printf ("Updating machine %v for cluster %v." , machine .Name , cluster .Name )
235
+ klog . Infof ("Updating machine %v for cluster %v." , machine .Name , cluster .Name )
236
236
// how to update the machine:
237
237
// - get the current parameters of the machine from the API
238
238
// - check if anything immutable has changed, in which case we return an error
@@ -272,7 +272,7 @@ func (a *Actuator) Exists(ctx context.Context, cluster *clusterv1.Cluster, machi
272
272
return false , fmt .Errorf ("cannot check if nil machine exists" )
273
273
}
274
274
var msg string
275
- log . Printf ("Checking if machine %v for cluster %v exists." , machine .Name , cluster .Name )
275
+ klog . Infof ("Checking if machine %v for cluster %v exists." , machine .Name , cluster .Name )
276
276
device , err := a .packetClient .GetDevice (machine )
277
277
if err != nil {
278
278
msg = fmt .Sprintf ("error retrieving machine status %s: %v" , machine .Name , err )
0 commit comments