mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #102461 from goodluckbot/apiserver-event-toSelectableFields
Improve ToSelectableFields' performance for events
This commit is contained in:
commit
63c75f3766
@ -129,7 +129,7 @@ func ToSelectableFields(event *api.Event) fields.Set {
|
|||||||
"source": source,
|
"source": source,
|
||||||
"type": event.Type,
|
"type": event.Type,
|
||||||
}
|
}
|
||||||
return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
|
return generic.MergeFieldsSets(specificFieldsSet, objectMetaFieldsSet)
|
||||||
}
|
}
|
||||||
|
|
||||||
// requestGroupVersion returns the group/version associated with the given context, or a zero-value group/version.
|
// requestGroupVersion returns the group/version associated with the given context, or a zero-value group/version.
|
||||||
|
Loading…
Reference in New Issue
Block a user