get node filtering params from matching context values (#2375)
parent
defad7a174
commit
e113f4b7c5
|
|
@ -98,7 +98,7 @@ func (p *Pod) List(ctx context.Context, ns string) ([]runtime.Object, error) {
|
|||
if withMx, ok := ctx.Value(internal.KeyWithMetrics).(bool); ok && withMx {
|
||||
pmx, _ = client.DialMetrics(p.Client()).FetchPodsMetricsMap(ctx, ns)
|
||||
}
|
||||
sel, _ := ctx.Value(internal.KeyLabels).(string)
|
||||
sel, _ := ctx.Value(internal.KeyFields).(string)
|
||||
fsel, err := labels.ConvertSelectorToLabelsMap(sel)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue