Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FilterSelectsNonEmpty (0.48 sec)

  1. 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)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    		var waypointAddress *workloadapi.GatewayAddress
    		if waypoint != nil {
    			waypointAddress = a.getWaypointAddress(waypoint)
    		}
    		fo := []krt.FetchOption{krt.FilterIndex(WorkloadServicesNamespaceIndex, wle.Namespace), krt.FilterSelectsNonEmpty(wle.GetLabels())}
    		if !features.EnableK8SServiceSelectWorkloadEntries {
    			fo = append(fo, krt.FilterGeneric(func(a any) bool {
    				return a.(model.ServiceInfo).Source == kind.ServiceEntry
    			}))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. 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)
  4. pkg/kube/krt/README.md

    * `FilterLabel(labels)`: filters to only objects that match these labels.
    * `FilterSelects(labels)`: filters to only objects that **select** these labels. An empty selector matches everything.
    * `FilterSelectsNonEmpty(labels)`: filters to only objects that **select** these labels. An empty selector matches nothing.
    * `FilterGeneric(func(any) bool)`: filters by an arbitrary function.
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top