Skip to content

Commit 9e49b78

Browse files
committed
test
1 parent f17cc1f commit 9e49b78

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/kustomize-check.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
validate-kustomize:
1313
runs-on: ubuntu-latest
14+
env:
15+
KUBERNETES_VERSION: v1.28.0
1416
steps:
1517
- name: Checkout code
1618
uses: actions/checkout@v4
@@ -30,12 +32,12 @@ jobs:
3032
find clusters/talos-robbinsdale/apps/* -type d -maxdepth 0 | while read dir; do
3133
echo "Validating kustomize build for $dir"
3234
if [ -f "$dir/kustomization.yaml" ]; then
33-
kustomize build --enable-helm "$dir"
35+
KUSTOMIZE_ENABLE_HELM=true KUBERNETES_VERSION=$KUBERNETES_VERSION kustomize build --enable-helm "$dir"
3436
if [ $? -ne 0 ]; then
3537
echo "Error: Kustomize build failed for $dir"
3638
exit 1
3739
fi
3840
else
3941
echo "Skipping $dir - no kustomization.yaml found"
4042
fi
41-
done
43+
done

0 commit comments

Comments
 (0)