set deprecatedEventSource to be backward compatible

Signed-off-by: Yassine TIJANI <ytijani@vmware.com>

Kubernetes-commit: 41e384397cf8505f226dc18f4250b297f98937ab
This commit is contained in:
Yassine TIJANI 2019-05-30 13:03:20 +00:00 committed by Kubernetes Publisher
parent 88ff0afc48
commit 540d4de249

View File

@ -85,5 +85,8 @@ func (recorder *recorderImpl) makeEvent(refRegarding *v1.ObjectReference, refRel
Related: refRelated,
Note: message,
Type: eventtype,
// TODO: remove this when we change conversion to convert eventSource
// to reportingController
DeprecatedSource: v1.EventSource{Component: reportingController},
}
}