mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 05:03:09 +00:00
Improve func ToSelectableFields performance for event
This commit is contained in:
parent
87984d84d1
commit
eb114115fd
@ -121,7 +121,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