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:
@@ -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{
|
||||
|
Reference in New Issue
Block a user