Skip to content

Commit 35ff5af

Browse files
committed
Added HELM validation to CI
1 parent 1c20b46 commit 35ff5af

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,17 @@ jobs:
4545
platforms: linux/amd64,linux/arm64
4646
push: false
4747
tags: test
48+
49+
helm:
50+
name: helm-validation
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: Validate Helm chart
55+
uses: stefanprodan/kube-tools@v1
56+
with:
57+
kubectl: 1.19.11
58+
helm: 2.17.0
59+
helmv3: 3.6.0
60+
command: |
61+
helmv3 template ./charts/qnap-csi | kubeval --strict --kubernetes-version 1.19.11 --schema-location https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ do here, if you have more, you should be more than capable of picking the right
2525

2626
To install the Helm chart: (this assumes you've cloned the repo as the chart isnt hosted yet)
2727
```shell
28-
helm install -n kube-system -f custom-values.yaml qnap-csi ./chart/qnap-csi
28+
helm install -n kube-system -f custom-values.yaml qnap-csi ./charts/qnap-csi
2929
```
3030
This will install the chart under the name of `qnap-csi` into the `kube-system` namespace using custom values in a YAML file.
3131

0 commit comments

Comments
 (0)