Skip to content

Commit 971caf9

Browse files
committed
controllers: finetune eventLogf (variant) docs
Signed-off-by: Hidde Beydals <[email protected]>
1 parent ff536e1 commit 971caf9

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

controllers/bucket_controller.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ func (r *BucketReconciler) getBucketSecret(ctx context.Context, obj *sourcev1.Bu
642642
return secret, nil
643643
}
644644

645-
// eventLogf records event and logs at the same time.
645+
// eventLogf records events, and logs at the same time.
646646
//
647647
// This log is different from the debug log in the EventRecorder, in the sense
648648
// that this is a simple log. While the debug log contains complete details
@@ -651,9 +651,10 @@ func (r *BucketReconciler) eventLogf(ctx context.Context, obj runtime.Object, ev
651651
r.annotatedEventLogf(ctx, obj, nil, eventType, reason, messageFmt, args...)
652652
}
653653

654-
// annotatedEventLogf records annotated event and logs at the same time. This
655-
// log is different from the debug log in the event recorder in the sense that
656-
// this is a simple log, the event recorder debug log contains complete details
654+
// annotatedEventLogf records annotated events, and logs at the same time.
655+
//
656+
// This log is different from the debug log in the EventRecorder, in the sense
657+
// that this is a simple log. While the debug log contains complete details
657658
// about the event.
658659
func (r *BucketReconciler) annotatedEventLogf(ctx context.Context,
659660
obj runtime.Object, annotations map[string]string, eventType string, reason string, messageFmt string, args ...interface{}) {

controllers/gitrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ func (r *GitRepositoryReconciler) garbageCollect(ctx context.Context, obj *sourc
673673
return nil
674674
}
675675

676-
// eventLogf records event and logs at the same time.
676+
// eventLogf records events, and logs at the same time.
677677
//
678678
// This log is different from the debug log in the EventRecorder, in the sense
679679
// that this is a simple log. While the debug log contains complete details

controllers/helmchart_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ func (r *HelmChartReconciler) requestsForBucketChange(o client.Object) []reconci
952952
return reqs
953953
}
954954

955-
// eventLogf records event and logs at the same time.
955+
// eventLogf records events, and logs at the same time.
956956
//
957957
// This log is different from the debug log in the EventRecorder, in the sense
958958
// that this is a simple log. While the debug log contains complete details

controllers/helmrepository_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func (r *HelmRepositoryReconciler) garbageCollect(ctx context.Context, obj *sour
514514
return nil
515515
}
516516

517-
// eventLogf records event and logs at the same time.
517+
// eventLogf records events, and logs at the same time.
518518
//
519519
// This log is different from the debug log in the EventRecorder, in the sense
520520
// that this is a simple log. While the debug log contains complete details

0 commit comments

Comments
 (0)