Skip to content

Commit

Permalink
Merge pull request #85 from corneliusweig/w/flatten
Browse files Browse the repository at this point in the history
Print flat resource lists to comply with k8s list shape
  • Loading branch information
corneliusweig committed Aug 30, 2020
2 parents d90bb62 + c7e2967 commit bf57e25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func fetchResourcesBulk(flags resource.RESTClientGetter, resourceTypes ...groupR
ResourceTypes(resourceNames...).
NamespaceParam(ns).DefaultNamespace().AllNamespaces(ns == "").
LabelSelectorParam(selector).FieldSelectorParam(fieldSelector).SelectAllParam(selector == "" && fieldSelector == "").
Flatten().
Latest()

return request.Do().Object()
Expand Down

0 comments on commit bf57e25

Please sign in to comment.