MCPcopy
hub / github.com/kubernetes/client-go / AnnotatedEventf

Method AnnotatedEventf

tools/record/event.go:327–329  ·  view source on GitHub ↗
(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{})

Source from the content-addressed store, hash-verified

325}
326
327func (recorder *recorderImpl) AnnotatedEventf(object runtime.Object, annotations map[string]string, eventtype, reason, messageFmt string, args ...interface{}) {
328 recorder.generateEvent(object, annotations, metav1.Now(), eventtype, reason, fmt.Sprintf(messageFmt, args...))
329}
330
331func (recorder *recorderImpl) makeEvent(ref *v1.ObjectReference, annotations map[string]string, eventtype, reason, message string) *v1.Event {
332 t := metav1.Time{Time: recorder.clock.Now()}

Callers

nothing calls this directly

Calls 2

generateEventMethod · 0.95
NowMethod · 0.65

Tested by

no test coverage detected