Skip to content

Add Kustomize validation test to CI pipeline #4477

@coderabbitai

Description

@coderabbitai

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

  1. CI Integration: Add a new job to the GitHub Actions workflow ()
  2. Comprehensive Coverage: Test all kustomization files found in the repository
  3. Fast Feedback: Fail fast with clear error messages when validation fails
  4. Local Development Support: Provide a script for local validation

Implementation Details

The test should:

  • Find all kustomization.yaml and kustomization.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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions