mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
feb334cdbb
commit
3b8477dcda
@ -1717,7 +1717,7 @@ func (dr *DashboardServiceImpl) searchDashboardsThroughK8sRaw(ctx context.Contex
|
||||
|
||||
if len(query.DashboardUIDs) > 0 {
|
||||
request.Options.Fields = []*resource.Requirement{{
|
||||
Key: "key.name",
|
||||
Key: "name",
|
||||
Operator: string(selection.In),
|
||||
Values: query.DashboardUIDs,
|
||||
}}
|
||||
@ -1791,6 +1791,10 @@ func (dr *DashboardServiceImpl) searchDashboardsThroughK8sRaw(ctx context.Contex
|
||||
request.Options.Fields = append(request.Options.Fields, req...)
|
||||
}
|
||||
|
||||
if query.Limit > 0 {
|
||||
request.Limit = query.Limit
|
||||
}
|
||||
|
||||
res, err := dr.k8sclient.getSearcher().Search(ctx, request)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user