From 7bc9494949aac0b6c120d0c3defcf0f87e4c4f0b Mon Sep 17 00:00:00 2001 From: Francisco-Xiq Date: Thu, 28 May 2026 15:10:56 -0300 Subject: [PATCH] ci: Add workflow to validate all kustomize builds Signed-off-by: Francisco-Xiq Signed-off-by: Francisco-xiq --- .github/workflows/validate-kustomize.yml | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/validate-kustomize.yml diff --git a/.github/workflows/validate-kustomize.yml b/.github/workflows/validate-kustomize.yml new file mode 100644 index 00000000..582ddd3e --- /dev/null +++ b/.github/workflows/validate-kustomize.yml @@ -0,0 +1,37 @@ +--- +name: Validate Kustomize + +on: + pull_request: + +jobs: + validate-kustomize: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout sources + uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Install kustomize + run: | + set -euxo pipefail + make kustomize + echo "$(pwd)/bin" >> $GITHUB_PATH + + - name: Validate all kustomization.yaml files + run: | + set -euxo pipefail + failed=0 + while IFS= read -r f; do + dir=$(dirname "$f") + echo "--- Validating $dir ---" + if ! kustomize build "$dir" > /dev/null; then + echo "::error file=$f::kustomize build failed for $dir" + failed=1 + else + echo "✓ $dir OK" + fi + done < <(find . -name "kustomization.yaml" -not -path "*/vendor/*") + exit $failed