- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sortByCreationComparator (0.46 sec)
-
pilot/pkg/model/config.go
matchHost = h matchValue = v } } } return matchHost, matchValue, found } // sortByCreationComparator is a comparator function for sorting config objects by creation time. func sortByCreationComparator(configs []config.Config) func(i, j int) bool { return func(i, j int) bool { // If creation time is the same, then behavior is nondeterministic. In this case, we can
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 08:51:03 UTC 2024 - 13.1K bytes - Viewed (0) -
pilot/pkg/model/push_context.go
// sortConfigBySelectorAndCreationTime sorts the list of config objects based on priority and creation time. func sortConfigBySelectorAndCreationTime(configs []config.Config) []config.Config { creationTimeComparator := sortByCreationComparator(configs) // Define a comparator function for sorting configs by priority and creation time comparator := func(i, j int) bool { idr := configs[i].Spec.(*networking.DestinationRule)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0)