-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (27 loc) · 1.03 KB
/
verify-charts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Verify Helm Charts
on:
push:
jobs:
verify-charts:
runs-on: ubuntu-24.04
container: ghcr.io/skaronator/devops-toolbox:v74
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Show versions
run: |
helm version
kubeconform -v
kubectl version --client
- name: Verify everything
run: |
for dir in *; do
# exclude files and dirs that start with a . (dot)
if [ -d "$dir" ] && ! echo "$dir" | grep -q '/\.[^.]/'; then
echo "Processing directory: $dir"
for chart in "$dir"/*; do
echo "Processing chart: $chart"
kubectl kustomize "$chart" --enable-helm | kubeconform -ignore-missing-schemas -schema-location default -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' -strict -summary
done
fi
done