Skip to content

Commit a296ebf

Browse files
authored
Merge pull request #1630 from sophiajwitt/mirgrating-openstackcluster_controller.go
🌱Migrate controllers/openstackcluster_controller.go to structured logging
2 parents e0b2279 + 0a81964 commit a296ebf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/openstackcluster_controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (r *OpenStackClusterReconciler) Reconcile(ctx context.Context, req ctrl.Req
9595
log = log.WithValues("cluster", cluster.Name)
9696

9797
if annotations.IsPaused(cluster, openStackCluster) {
98-
log.Info("OpenStackCluster or linked Cluster is marked as paused. Won't reconcile")
98+
log.Info("OpenStackCluster or linked Cluster is marked as paused. Not reconciling")
9999
return reconcile.Result{}, nil
100100
}
101101

@@ -192,7 +192,7 @@ func (r *OpenStackClusterReconciler) reconcileDelete(ctx context.Context, scope
192192

193193
// Cluster is deleted so remove the finalizer.
194194
controllerutil.RemoveFinalizer(openStackCluster, infrav1.ClusterFinalizer)
195-
scope.Logger().Info("Reconciled Cluster delete successfully")
195+
scope.Logger().Info("Reconciled Cluster deleted successfully")
196196
return ctrl.Result{}, nil
197197
}
198198

@@ -303,7 +303,7 @@ func reconcileNormal(scope scope.Scope, cluster *clusterv1.Cluster, openStackClu
303303
openStackCluster.Status.Ready = true
304304
openStackCluster.Status.FailureMessage = nil
305305
openStackCluster.Status.FailureReason = nil
306-
scope.Logger().Info("Reconciled Cluster create successfully")
306+
scope.Logger().Info("Reconciled Cluster created successfully")
307307
return reconcile.Result{}, nil
308308
}
309309

@@ -609,7 +609,7 @@ func (r *OpenStackClusterReconciler) SetupWithManager(ctx context.Context, mgr c
609609
}
610610

611611
if annotations.IsExternallyManaged(c) {
612-
log.V(4).Info("OpenStackCluster is externally managed, skipping mapping.")
612+
log.V(4).Info("OpenStackCluster is externally managed, skipping mapping")
613613
return nil
614614
}
615615
return requests

0 commit comments

Comments
 (0)