fix: remove reportingInstance field in eventKey.

Kubernetes-commit: 6b17e5e2a48d00946bdf443d9bfaf8a295b344ec
This commit is contained in:
Jianfei Bai 2019-09-23 20:00:16 +08:00 committed by Kubernetes Publisher
parent 2bd34d193b
commit bc70a20c12

View File

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