Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/validate-kustomize.yml
Original file line number Diff line number Diff line change
@@ -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
Comment thread
coderabbitai[bot] marked this conversation as resolved.
with:
persist-credentials: false

- name: Install kustomize
run: |
Comment thread
Francisco-xiq marked this conversation as resolved.
set -euxo pipefail
make kustomize
echo "$(pwd)/bin" >> $GITHUB_PATH

- name: Validate all kustomization.yaml files
run: |
Comment thread
Francisco-xiq marked this conversation as resolved.
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
Loading