Files
k8sgpt/pkg/common
copilot-swe-agent[bot] dfdcf9edd2 Add Generic CRD Analyzer implementation with tests
- Added CRDAnalyzerConfig types to pkg/common/types.go for configuration
- Implemented CRD analyzer in pkg/analyzer/crd.go with support for:
  - Discovery of all installed CRDs via apiextensions API
  - Generic health checks based on common patterns (.status.conditions, .status.phase, etc.)
  - Configurable per-CRD health checks via YAML config
  - Detection of stuck resources (deletionTimestamp with finalizers)
- Registered CRDAnalyzer in additionalAnalyzerMap
- Added comprehensive unit tests in pkg/analyzer/crd_test.go
- All tests passing

Co-authored-by: AlexsJones <1235925+AlexsJones@users.noreply.github.com>
2026-02-06 07:25:29 +00:00
..