Unverified Commit c06bc204 authored by tiancan's avatar tiancan Committed by GitHub
Browse files

fix bug when query pod (#196)

* fix bug when query pod

* add 1.6.1 changelog
No related merge requests found
Showing with 2 additions and 1 deletion
+2 -1
......@@ -6,6 +6,7 @@
## Bugfix
- Fix: warden pivot url parse error [#194](https://github.com/kubecube-io/KubeCube/pull/194)
- Fix: query pod list [#196](https://github.com/kubecube-io/KubeCube/pull/196)
## Dependencies
......
......@@ -61,7 +61,7 @@ func Handle(param resourcemanage.ExtendParams) (interface{}, error) {
return nil, errors.New(errcode.ClusterNotFoundError(param.Cluster).Message)
}
pod := NewPod(kubernetes, param.Namespace, param.Filter)
if pod.filter.EnableFilter {
if pod.filter.EnableFilter && pod.filter.Exact[ownerUidLabel].Len() > 0 {
err := pod.GetRs()
if err != nil {
return nil, errors.New(err.Error())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment