Merge pull request #83018 from jfbai/fix-remove-duplicated-field-in-eventKey

fix: remove reportingInstance field in eventKey.

Kubernetes-commit: 0541d0bb79537431421774465721f33fd3b053bc
This commit is contained in:
Kubernetes Publisher 2019-09-24 04:53:27 -07:00
commit 0df3af31cd

View File

@ -53,7 +53,6 @@ type eventKey struct {
action string
reason string
reportingController string
reportingInstance string
regarding corev1.ObjectReference
related corev1.ObjectReference
}
@ -264,7 +263,6 @@ func getKey(event *v1beta1.Event) eventKey {
action: event.Action,
reason: event.Reason,
reportingController: event.ReportingController,
reportingInstance: event.ReportingInstance,
regarding: event.Regarding,
}
if event.Related != nil {