Skip to content

Commit 532b2c1

Browse files
committed
fix up log msg
Signed-off-by: Karol Szwaj <[email protected]> On-behalf-of: @SAP [email protected]
1 parent 3f499ab commit 532b2c1

File tree

1 file changed

+1
-4
lines changed
  • examples/initializingworkspaces

1 file changed

+1
-4
lines changed

examples/initializingworkspaces/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,17 @@ func main() {
121121
"test-data": "example-value",
122122
},
123123
}
124+
log.Info("Reconciling ConfigMap", "name", s.Name, "uuid", s.UID)
124125
if err := client.Create(ctx, s); err != nil {
125126
return reconcile.Result{}, fmt.Errorf("failed to create configmap: %w", err)
126127
}
127-
log.Info("Created ConfigMap", "name", s.Name, "uuid", s.UID)
128128
// Remove the initializer from the logical cluster status
129129
// so that it won't be processed again.
130-
131130
initializerName := corev1alpha1.LogicalClusterInitializer(initializerName)
132131
if !slices.Contains(lc.Status.Initializers, initializerName) {
133132
log.Info("Initializer already absent, skipping patch")
134133
return reconcile.Result{}, nil
135134
}
136-
log.Info("Reconciling ConfigMap", "name", s.Name, "uuid", s.UID)
137-
138135
patch := ctrlclient.MergeFrom(lc.DeepCopy())
139136
lc.Status.Initializers = initialization.EnsureInitializerAbsent(initializerName, lc.Status.Initializers)
140137
if err := client.Status().Patch(ctx, lc, patch); err != nil {

0 commit comments

Comments
 (0)