未验证 提交 af59940e 编写于 作者: H hongming

fuzzy matching name by default

Signed-off-by: Nhongming <talonwan@yunify.com>
上级 31436b45
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册