You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add HelmChart manifest validation for linter (#636)
* Add validation for chart-to-HelmChart manifest mapping
Validates that every configured Helm chart has a corresponding HelmChart
manifest (kind: HelmChart). This ensures templates can be properly rendered
with builder values during preflight checks.
Key changes:
- New validation layer with batch error reporting for missing manifests
- Refactored extraction to consolidate HelmChart discovery (eliminates duplicate calls)
- Separated discovery (lenient) from validation (strict) layers
- Added auto-discovery support for HelmChart manifests
- Made manifest paths optional in config (validation happens at runtime)
The validation runs after resource discovery but before linting, catching
configuration errors early with clear, actionable error messages.
* Add comprehensive tests and documentation for HelmChart validation
Adds unit tests, integration tests, CLI tests, and documentation for the
chart-to-HelmChart manifest validation feature to ensure correctness and
provide clear guidance for users.
Changes:
- Add 11 unit tests in validation_test.go covering all validation scenarios
- Add 6 integration tests in validation_integration_test.go with test fixtures
- Add 3 CLI integration tests in lint_test.go for end-to-end validation
- Create 6 test scenario fixtures in testdata/validation/
- Add HelmChart Manifest Requirements section to docs/lint-format.md
- Update existing tests to reflect lenient discovery pattern
The tests cover success cases, error cases (single and batch), warnings for
orphaned manifests, auto-discovery mode, and edge cases. Documentation
includes configuration examples, validation behavior, error messages, and
troubleshooting guidance.
* Fix test: update expected error message for empty manifest path
0 commit comments