mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
* feat(analyze): warn when nodeResources has no node data, add ignoreIfNoFiles The nodeResources analyzer previously failed silently when cluster-resources/nodes.json was not collected (e.g. when the clusterResources collector was excluded or could not list nodes). It now emits a warn outcome per nodeResources entry in the spec. Add an ignoreIfNoFiles top-level field to nodeResources, mirroring textAnalyze, so users can opt out of the new warning when the analyzer is intentionally optional. - Add IgnoreIfNoFiles to v1beta2.NodeResources - Update CRDs and JSON schemas - Unit test the warn / ignore paths - Add an e2e fixture and test that excludes clusterResources and asserts the analyze output Signed-off-by: Evans Mungai <evans@replicated.com> * Fix review comment Signed-off-by: Evans Mungai <evans@replicated.com> --------- Signed-off-by: Evans Mungai <evans@replicated.com>