Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions control-operator/internal/controller/task_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ package controller

import (
"context"
"encoding/json"
"fmt"
"reflect"
"strings"
Expand Down Expand Up @@ -451,12 +450,3 @@ func (r *TaskReconciler) recordCondition(ctx context.Context, t *aliecsv1alpha1.
r.Recorder.Event(t, eventType, reason, message)
return r.Status().Patch(ctx, t, patch)
}

func prettyPrint(i any) string {
s, err := json.MarshalIndent(i, "", " ")
if err != nil {
// If marshalling fails, return a simple error string
return "failed to pretty-print object"
}
return string(s)
}
Loading