- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SortWorkloadsByCreationTime (0.33 sec)
-
pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go
if len(key.Addresses) == 0 { return nil } workloads := a.workloads.ByOwningWaypoint.Lookup(networkAddress{ network: key.Network, ip: key.Addresses[0], }) workloads = model.SortWorkloadsByCreationTime(workloads) return workloads } func (a *index) AdditionalPodSubscriptions( proxy *model.Proxy, allAddresses sets.String, currentSubs sets.String, ) sets.String {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 19 17:19:41 UTC 2024 - 15.8K bytes - Viewed (0) -
pilot/pkg/model/service.go
switch addr := a.Type.(type) { case *workloadapi.Address_Workload: return &WorkloadInfo{Workload: addr.Workload} default: return nil } }) } func SortWorkloadsByCreationTime(workloads []WorkloadInfo) []WorkloadInfo { sort.SliceStable(workloads, func(i, j int) bool { if workloads[i].CreationTime.Equal(workloads[j].CreationTime) { return workloads[i].Uid < workloads[j].Uid }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 46.3K bytes - Viewed (0)