Skip to content

Update azure/setup-helm action to v4 #2

Update azure/setup-helm action to v4

Update azure/setup-helm action to v4 #2

name: Kustomize Validation
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
validate-kustomize:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Kustomize
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
sudo mv kustomize /usr/local/bin/
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: 'latest'
- name: Validate Kustomize builds
run: |
find clusters/talos-robbinsdale/apps/* -type d -maxdepth 0 | while read dir; do
echo "Validating kustomize build for $dir"
if [ -f "$dir/kustomization.yaml" ]; then
kustomize build --enable-helm "$dir"
if [ $? -ne 0 ]; then
echo "Error: Kustomize build failed for $dir"
exit 1
fi
else
echo "Skipping $dir - no kustomization.yaml found"
fi
done