forked from cilium/cilium
55 lines (48 loc) · 1.46 KB
/
helm-check.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
49
50
51
52
53
54
55
name: Helm Lint and Test Charts
on:
pull_request: {}
push:
branches:
- master
jobs:
preflight-clusterrole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check pre-flight clusterrole
run: |
cd install/kubernetes/cilium/charts
echo "Checking for differences between preflight and agent clusterrole"
diff \
-I '^[ ]\{2\}name: cilium.*' \
-I '^Keep file in synced with.*' \
agent/templates/clusterrole.yaml \
preflight/templates/clusterrole.yaml
quick-install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check quick-install.yaml
run: |
cd install/kubernetes
make all
git diff --exit-code
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run helm lint
run: |
cd install/kubernetes/cilium
helm lint --with-subcharts --values values.yaml
- name: Create kind cluster
uses: helm/kind-action@v1.0.0-rc.1
with:
version: v0.8.1
# This test is just to make sure the helm chart can be installed. It will not replace existing integration tests
- name: Run chart-testing (install)
uses: helm/chart-testing-action@v1.0.0-rc.2
with:
command: install
config: install/kubernetes/chart-testing.yaml