1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-11 12:19:53 +00:00

VAI: Replace namespace+name default sort with id (#724)

* Sort by ID rather than metadata.namespace,metadata.name

- In tests add an id field to the list of fields to cache/create and to the objects.

* Add benchmark tests to compare sorting by ns/name vs id.
This commit is contained in:
Eric Promislow
2025-08-07 15:42:33 -07:00
committed by GitHub
parent 97b595d551
commit dbd2818d22
3 changed files with 157 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ func (i *IntegrationSuite) TearDownSuite() {
}
func (i *IntegrationSuite) TestSQLCacheFilters() {
fields := [][]string{{"metadata", "annotations", "somekey"}}
fields := [][]string{{"id"}, {"metadata", "annotations", "somekey"}}
require := i.Require()
configMapWithAnnotations := func(name string, annotations map[string]string) v1.ConfigMap {
return v1.ConfigMap{