mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 19:52:42 +00:00
Use a strong type for UID fields
This commit is contained in:
@@ -136,7 +136,7 @@ func (e *events) Search(objOrRef runtime.Object) (*api.EventList, error) {
|
||||
fields["involvedObject.name"] = ref.Name
|
||||
}
|
||||
if ref.UID != "" {
|
||||
fields["involvedObject.uid"] = ref.UID
|
||||
fields["involvedObject.uid"] = string(ref.UID)
|
||||
}
|
||||
return e.List(labels.Everything(), fields.AsSelector())
|
||||
}
|
||||
|
Reference in New Issue
Block a user