Skip to content

Commit 2e776eb

Browse files
committed
Remove prints
Signed-off-by: Pavol Loffay <[email protected]>
1 parent e92d64b commit 2e776eb

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

controllers/opentelemetrycollector_controller.go

-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ func (r *OpenTelemetryCollectorReconciler) Reconcile(ctx context.Context, req ct
191191
// on deleted requests.
192192
return ctrl.Result{}, client.IgnoreNotFound(err)
193193
}
194-
fmt.Printf("----> reconcile instance: %v", instance)
195194
// We have a deletion, short circuit and let the deletion happen
196195
if deletionTimestamp := instance.GetDeletionTimestamp(); deletionTimestamp != nil {
197196
return ctrl.Result{}, nil

pkg/collector/upgrade/upgrade.go

-2
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,13 @@ func (u VersionUpgrade) ManagedInstances(ctx context.Context) error {
8080
patch := client.MergeFrom(&original)
8181
if err := u.Client.Patch(ctx, &upgraded, patch); err != nil {
8282
itemLogger.Error(err, "failed to apply changes to instance")
83-
fmt.Println("---> AAAA")
8483
continue
8584
}
8685

8786
// the status object requires its own update
8887
upgraded.Status = st
8988
if err := u.Client.Status().Patch(ctx, &upgraded, patch); err != nil {
9089
itemLogger.Error(err, "failed to apply changes to instance's status object")
91-
fmt.Println("---> AAAA")
9290
continue
9391
}
9492

pkg/collector/upgrade/v0_56_0.go

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ func upgrade0_56_0(u VersionUpgrade, otelcol *v1alpha1.OpenTelemetryCollector) (
3434

3535
// Add minReplicas
3636
one := int32(1)
37-
fmt.Println("----> CCC")
38-
fmt.Println(otelcol.Spec.Autoscaler.MinReplicas)
39-
fmt.Println(otelcol.Spec.Autoscaler.MaxReplicas)
4037
if otelcol.Spec.Autoscaler.MinReplicas == nil {
4138
otelcol.Spec.Autoscaler.MinReplicas = &one
4239
}

0 commit comments

Comments
 (0)