File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Kustomize Validation
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ pull_request :
8+ branches :
9+ - ' **'
10+
11+ jobs :
12+ validate-kustomize :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : Install Kustomize
19+ run : |
20+ curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
21+ sudo mv kustomize /usr/local/bin/
22+
23+ - name : Install Helm
24+ uses : azure/setup-helm@v3
25+ with :
26+ version : ' latest'
27+
28+ - name : Validate Kustomize builds
29+ run : |
30+ find clusters/talos-robbinsdale/apps/* -type d -maxdepth 0 | while read dir; do
31+ echo "Validating kustomize build for $dir"
32+ if [ -f "$dir/kustomization.yaml" ]; then
33+ kustomize build --enable-helm "$dir"
34+ if [ $? -ne 0 ]; then
35+ echo "Error: Kustomize build failed for $dir"
36+ exit 1
37+ fi
38+ else
39+ echo "Skipping $dir - no kustomization.yaml found"
40+ fi
41+ done
You can’t perform that action at this time.
0 commit comments