未验证 提交 1fcef696 编写于 作者: Z zryfish 提交者: GitHub

fix search node with invalid name bug (#2902)

Signed-off-by: NJeff <jeffzhang@yunify.com>
上级 8b4028cc
......@@ -115,7 +115,7 @@ func (c nodesGetter) List(_ string, q *query.Query) (*api.ListResult, error) {
}
}
var result []interface{}
var result = make([]interface{}, 0)
for _, node := range selectedNodes {
c.annotateNode(node, nonTerminatedPodsList)
result = append(result, node)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册