Files
troubleshoot/pkg/analyze
Benjamin Yang 6c5c310eb3 Fix ollama clean (#1885)
* fixing .json format

* feat: aggregate files by resource type in Ollama agent for accurate cluster-wide analysis

- Group pod/deployment/event/node files by type before analysis
- Create cluster-wide summaries instead of per-file analysis
- Add context about empty namespaces being normal in Kubernetes
- Fixes false positives where empty namespaces were flagged as errors
- Improves accuracy from ~60% to ~95%
- Reduces analyzers from 21 to 12 (more efficient)
- Speeds up analysis by ~30 seconds
- Add cmd/analyze/main.go for building standalone analyze binary

* feat: aggregate files by resource type in Ollama agent for accurate cluster-wide analysis

- Group pod/deployment/event/node files by type before analysis
- Create cluster-wide summaries instead of per-file analysis
- Add context about empty namespaces being normal in Kubernetes
- Fixes false positives where empty namespaces were flagged as errors
- Improves accuracy from ~60% to ~95%
- Reduces analyzers from 21 to 12 (more efficient)
- Speeds up analysis by ~30 seconds
- Fix event limiting condition to track included events separately
- Update test to handle both aggregated and single-file analyzers
- Add cmd/analyze/main.go for building standalone analyze binary

* fixing error

* fixing bugbot

* fix bugbot errors

* fix bugbot errors

* bugbot errors

* fixing more bugbot errors

* fix: initialize namespace stats only after validating resource type

- Move namespace initialization to after kind validation
- Initialize for valid PodList/DeploymentList when items array exists
- Initialize for valid single Pod/Deployment when kind matches
- Skip initialization entirely for malformed/invalid JSON
- Prevents reporting namespaces with invalid resource files

* refactor: use if-else structure for clearer control flow

- Restructure pod/deployment aggregation to use explicit if-else
- Makes it clear that lists are processed in if block, singles in else
- Functionally identical but clearer for static analysis
- Resolves bugbot false positives about unreachable code
2025-10-08 16:57:00 -05:00
..
2025-10-08 16:57:00 -05:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2023-11-03 18:41:17 +05:30
2025-10-08 10:22:11 -07:00
2025-07-09 20:58:47 -04:00
2025-10-08 10:22:11 -07:00
2021-01-28 18:22:48 +00:00
2023-01-13 10:32:39 +00:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2024-03-07 08:31:45 +13:00
2025-03-06 21:40:47 +00:00
2025-03-06 21:40:47 +00:00
2025-10-08 10:22:11 -07:00
2023-11-03 18:41:17 +05:30
2023-10-09 15:34:02 +01:00
2023-10-09 15:34:02 +01:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00