-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (43 loc) · 1.53 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
41
42
43
44
45
46
47
48
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
- uses: azure/[email protected]
- uses: bmuschko/setup-kubeconform@v1
- name: validate kustomize with kubeconform
run: |
set -o errexit
set -o pipefail
items=$(find bootstrap -maxdepth 2 -name kustomization.yaml -exec dirname {} \;)
items+=($(find operators -maxdepth 2 -name kustomization.yaml -exec dirname {} \;))
items+=($(find components -maxdepth 2 -name kustomization.yaml -exec dirname {} \;))
items+=($(find apps -maxdepth 2 -name kustomization.yaml -exec dirname {} \;))
for item in ${items}; do
echo "${item}"
kubectl kustomize --enable-helm "${item}" | \
kubeconform -skip=Secret -strict -ignore-missing-schemas
done
workflows-description:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: thiagodnf/[email protected]
with:
jsonSchemaFile: argo-workflows/.workflow_with_description.schema.json
yamlFiles: |
argo-workflows/**/workflowtemplates/*.y*ml
argo-workflows/**/sensors/*.y*ml
argo-workflows/**/workflows/*.y*ml