replicatedhq / troubleshoot

Preflight Checks and Support Bundles Framework for Kubernetes Applications
https://troubleshoot.sh
Apache License 2.0
543 stars 92 forks source link

Quick fix to prevent panic on nil collector result #1508

Closed nvanthao closed 5 months ago

nvanthao commented 5 months ago

Description, Motivation and Context

Fixes: https://github.com/replicatedhq/troubleshoot/issues/1442

Quick fix before we can refractor the collector, I think we should not mutate the result in defer block.

Checklist

Does this PR introduce a breaking change?