- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FilterSelectsNonEmpty (0.15 sec)
-
pkg/kube/krt/filter.go
return idx.Lookup(k) } h.filter.indexMatches = func(a any) bool { return idx.objectHasKey(a.(I), k) } } } // FilterSelectsNonEmpty only includes objects that select this label. If the selector is empty, it is not a match. func FilterSelectsNonEmpty(lbls map[string]string) FetchOption { return func(h *dependency) { h.filter.selectsNonEmpty = lbls } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 4.8K bytes - Viewed (0) -
pkg/kube/krt/bench_test.go
if p.Status.PodIP == "" { return nil } services := krt.Fetch(ctx, Services, krt.FilterIndex(ServicesByNamespace, p.Namespace), krt.FilterSelectsNonEmpty(p.GetLabels())) return &Workload{ Named: krt.NewNamed(p), IP: p.Status.PodIP, ServiceNames: slices.Map(services, func(e *v1.Service) string { return e.Name }), } })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 09 19:55:53 UTC 2024 - 7K bytes - Viewed (0)