-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.27 KB
/
helm-validate.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
name: Validate Helm Chart
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
validate-helm-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Run Kubernetes tools
uses: stefanprodan/[email protected]
with:
helmv3: 3.5.2
command: |
echo "#### Setup: Add helm charts"
helmv3 repo add jupyterhub https://jupyterhub.github.io/helm-chart
helmv3 repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helmv3 repo update
echo "#### Setup: Update local chart"
cd hub23-chart && helmv3 dep up && cd ..
echo "#### TEST 1: Run helm lint"
helmv3 lint hub23-chart \
-f hub23-chart/values.yaml \
-f deploy/prod.yaml \
-f deploy/test-values.yaml \
--debug
echo "#### TEST 2: Run helm template and pipe to kubeval"
helmv3 template hub23-chart \
-f hub23-chart/values.yaml \
-f deploy/prod.yaml \
-f deploy/test-values.yaml \
--debug | kubeval \
--kubernetes-version 1.18.1 \
--ignore-missing-schemas