mirror of
https://github.com/Telecominfraproject/wlan-cloud-helm.git
synced 2026-03-20 22:39:08 +00:00
Compare commits
4 Commits
fix-capabi
...
TOOLS-23--
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cac6fbc698 | ||
|
|
1d00ff19fa | ||
|
|
51b4717fdd | ||
|
|
6640fbeb61 |
16
.github/workflows/helm-validation.yml
vendored
16
.github/workflows/helm-validation.yml
vendored
@@ -15,26 +15,24 @@ jobs:
|
||||
ssh-key: ${{ secrets.GH_AUTOMATION_KEY }}
|
||||
submodules: true
|
||||
- name: Validators setup
|
||||
working-directory: /tmp
|
||||
env:
|
||||
KUBESCORE_VERSON: 1.7.1
|
||||
run: |
|
||||
mkdir /tmp/k8s-validators
|
||||
cd /tmp/k8s-validators
|
||||
|
||||
curl -LO https://github.com/instrumenta/kubeval/releases/latest/download/kubeval-linux-amd64.tar.gz
|
||||
tar xf kubeval-linux-amd64.tar.gz
|
||||
rm -f kubeval-linux-amd64.tar.gz
|
||||
rm -f kubeval-linux-amd64.tar.gz LICENSE README.md
|
||||
|
||||
curl -LO https://github.com/zegl/kube-score/releases/download/v${{ env.KUBESCORE_VERSON }}/kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
|
||||
tar xf kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
|
||||
rm -f kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz
|
||||
rm -f kube-score_${{ env.KUBESCORE_VERSON }}_linux_amd64.tar.gz LICENSE README.md
|
||||
|
||||
curl -LO https://get.helm.sh/helm-v3.2.4-linux-amd64.tar.gz
|
||||
tar xf helm-v3.2.4-linux-amd64.tar.gz
|
||||
mv linux-amd64/helm .
|
||||
rm -fr helm-v3.2.4-linux-amd64.tar.gz linux-amd64
|
||||
|
||||
echo "::add-path::/tmp/k8s-validators/"
|
||||
- name: Cache validators
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
@@ -44,15 +42,15 @@ jobs:
|
||||
working-directory: tip-wlan
|
||||
run: |
|
||||
echo "Kubeval test"
|
||||
helm template -f values-test.yaml . | kubeval --ignore-missing-schemas
|
||||
helm template -f values-test.yaml . | /tmp/k8s-validators/kubeval --ignore-missing-schemas
|
||||
|
||||
echo "Kube-score test"
|
||||
helm template -f values-test.yaml . | kube-score score -
|
||||
helm template -f values-test.yaml . | /tmp/k8s-validators/kube-score score -
|
||||
- name: Test glusterfs
|
||||
working-directory: glusterfs/kube-templates
|
||||
run: |
|
||||
echo "Kubeval test"
|
||||
kubeval *.yaml
|
||||
/tmp/k8s-validators/kubeval *.yaml
|
||||
|
||||
echo "Kube-score test"
|
||||
kube-score score *.yaml
|
||||
/tmp/k8s-validators/kube-score score *.yaml
|
||||
Reference in New Issue
Block a user