mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
event_broadcaster: update isomorphic event def
Update the definition of an isomorphic event in the events/v1 client to match the aggregation logic that was already present in the core/v1 implementation. The note field was omitted even though the message was used in the core API aggregation because we didn't reach consensus. Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
This commit is contained in:
parent
50a0bc8de1
commit
21f2f746ab
@ -56,9 +56,11 @@ var defaultSleepDuration = 10 * time.Second
|
|||||||
|
|
||||||
// TODO: validate impact of copying and investigate hashing
|
// TODO: validate impact of copying and investigate hashing
|
||||||
type eventKey struct {
|
type eventKey struct {
|
||||||
|
eventType string
|
||||||
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
|
||||||
}
|
}
|
||||||
@ -289,9 +291,11 @@ func createPatchBytesForSeries(event *eventsv1.Event) ([]byte, error) {
|
|||||||
|
|
||||||
func getKey(event *eventsv1.Event) eventKey {
|
func getKey(event *eventsv1.Event) eventKey {
|
||||||
key := eventKey{
|
key := eventKey{
|
||||||
|
eventType: event.Type,
|
||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user