Skip to content

Commit

Permalink
Use kubeval
Browse files Browse the repository at this point in the history
  • Loading branch information
MaT1g3R committed May 26, 2020
1 parent 349de68 commit 039ee72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/kubeval.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -e
for f in charts/*; do
helmv3 template "$f" | kubeval --strict
done
16 changes: 6 additions & 10 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,10 @@ jobs:
with:
command: lint

- name: Create kind cluster
uses: helm/[email protected]
# Only build a kind cluster if there are chart changes to test.
if: steps.lint.outputs.changed == 'true'
- name: Run kubeval
uses: stefanprodan/kube-tools@v1
with:
version: v0.8.0

- name: Run chart-testing (install)
uses: helm/[email protected]
with:
command: install
kubectl: 1.18.2
helmv3: 3.2.1
command: |
./.github/kubeval.sh

0 comments on commit 039ee72

Please sign in to comment.