Skip to content

Commit 4541c71

Browse files
committed
Improve message when no action is provided for an event.
Signed-off-by: Borja Clemente <[email protected]>
1 parent ec0ec16 commit 4541c71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/internal/recorder/recorder.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ type oldRecorder struct {
172172
}
173173

174174
func (l *oldRecorder) Event(object runtime.Object, eventtype, reason, message string) {
175-
l.newRecorder.Eventf(object, nil, eventtype, reason, "unsupported", message)
175+
l.newRecorder.Eventf(object, nil, eventtype, reason, "no action", message)
176176
}
177177

178178
func (l *oldRecorder) Eventf(object runtime.Object, eventtype, reason, messageFmt string, args ...any) {
179-
l.newRecorder.Eventf(object, nil, eventtype, reason, "unsupported", messageFmt, args...)
179+
l.newRecorder.Eventf(object, nil, eventtype, reason, "no action", messageFmt, args...)
180180
}
181181

182182
func (l *oldRecorder) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...any) {
183-
l.newRecorder.Eventf(object, nil, eventtype, reason, "unsupported", messageFmt, args...)
183+
l.newRecorder.Eventf(object, nil, eventtype, reason, "no action", messageFmt, args...)
184184
}

0 commit comments

Comments
 (0)