fuzzy matching name by default

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-05-04 23:53:57 +08:00
parent 31436b451d
commit af59940ed2

View File

@@ -67,7 +67,7 @@ func (h *Handler) fallback(resourceType string, namespace string, q *query.Query
for field, value := range q.Filters {
switch field {
case query.FieldName:
conditions.Match[v1alpha2.Name] = string(value)
conditions.Fuzzy[v1alpha2.Name] = string(value)
break
case query.FieldCreationTimeStamp:
conditions.Match[v1alpha2.CreateTime] = string(value)