-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 1.17 KB
/
yamllint.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
29
30
31
32
33
34
35
36
37
38
39
40
name: Validate Manifests
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint-yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install yamllint
- run: yamllint -c .yamllint.yaml --format github .
kustomize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-kubectl@v3
- name: kustomize build operators
run: |
for operator in $(find operators -maxdepth 1 -mindepth 1 -type d); do
echo "${operator}"
kubectl kustomize --enable-helm "${operator}" > /dev/null
done
echo "apps/operators"
kubectl kustomize apps/operators > /dev/null
- name: kustomize build components
run: |
for component in $(find components -maxdepth 1 -mindepth 1 -type d); do
if [[ "${component}" =~ "secrets" ]]; then
echo "Skipping secrets"
else
echo "${component}"
kubectl kustomize --enable-helm "${component}" > /dev/null
fi
done
echo "apps/components"
kubectl kustomize apps/components > /dev/null