fix: skip non-Kubernetes entries in analyze output #484
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: <a href="https://github.com/etcd-io/auger/pull/484#" title="Author self-approved">immanuwell</a>
Once this PR has been reviewed and has the lgtm label, please assign wenjiaswe for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
<details open>
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
</details>
<!-- META={"approvers":["wenjiaswe"]} -->
is this func still needed?
Thanks for the fix. is the change from i > 10 to i >= 10 relevant to the fix?
fmt.Fprintf(out, "Total objects: %d\n", len(summaries))
@immanuwell Are you still interested in working on this PR?
siyuanfoundation
immanuwell
this fixes a panic in
auger analyzewhen the db has non-Kubernetes keys likecompact_rev_key.it was assuming every entry had
TypeMeta, so theLargest objectssection could blow up. this skips entries without Kubernetes metadata and adds a regression test.how to repro
before this panics with a nil pointer dereference
after it prints the report and exits cleanly