-
Notifications
You must be signed in to change notification settings - Fork 229
Open
Description
Description
This issue is to implement a comprehensive Kustomize validation test that runs against all kustomization files in the repository to ensure they can be successfully built.
Background
This test would have prevented the issue addressed in PR #4476 where a missing CRD file reference caused kustomize build failures. The test should validate that all kustomization.yaml files in the repository can be successfully processed by kustomize build.
Requirements
- CI Integration: Add a new job to the GitHub Actions workflow ()
- Comprehensive Coverage: Test all kustomization files found in the repository
- Fast Feedback: Fail fast with clear error messages when validation fails
- Local Development Support: Provide a script for local validation
Implementation Details
The test should:
- Find all
kustomization.yaml
andkustomization.yml
files in the repository - Run
kustomize build
on each directory containing these files - Report success/failure for each directory
- Fail the CI build if any kustomization file cannot be built
- Provide clear error messages for debugging
Acceptance Criteria
- New GitHub Actions job
Kustomize-Validation
added to.github/workflows/test.yml
- Job is included in the
Tests
job dependencies - Local validation script created (optional but recommended)
- Test validates all ~30+ kustomization files in the repository
- CI fails appropriately when kustomization files have errors
- Clear error messages provided for debugging failed builds
References
- PR: remove
hardwareprofiles.opendatahub.io.crd.yaml
fromcommon/crd/kustomization.yaml
#4476 - Comment: remove
hardwareprofiles.opendatahub.io.crd.yaml
fromcommon/crd/kustomization.yaml
#4476 (comment) - Requested by: @jiridanek
Additional Context
The repository contains kustomization files in various directories including:
manifests/common/crd/kustomization.yaml
manifests/crd/kustomization.yaml
- Various component directories with their own kustomization files
This test will ensure that all these files remain valid and can be successfully built by kustomize.
Metadata
Metadata
Assignees
Labels
No labels