File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ KUBE_SCORE=${KUBE_SCORE:- kube-score}
34
45for chart in ` ls charts` ;
56do
6- helm template --values charts/$chart /ci/ci-values.yaml charts/$chart | kube-score score - \
7+ helm template --values charts/$chart /ci/ci-values.yaml charts/$chart | ${KUBE_SCORE} score - \
78 --ignore-test pod-networkpolicy \
89 --ignore-test deployment-has-poddisruptionbudget \
910 --ignore-test deployment-has-host-podantiaffinity \
1011 --ignore-test pod-probes \
1112 --ignore-test container-image-tag \
1213 --enable-optional-test container-security-context-privileged \
13- --ignore-test container-security-context
14+ --ignore-test container-security-context \
15+ --ignore-test container-security-context-user-group-id \
16+ --ignore-test container-security-context-readonlyrootfilesystem \
17+ #
1418done
Original file line number Diff line number Diff line change 1212 workflow_dispatch :
1313
1414env :
15- KUBE_SCORE_VERSION : 1.10 .0
15+ KUBE_SCORE_VERSION : 1.12 .0
1616 HELM_VERSION : v3.4.1
1717
1818jobs :
@@ -31,18 +31,14 @@ jobs:
3131
3232 - name : Set up kube-score
3333 run : |
34- wget https://github.com/zegl/kube-score/releases/download/v${{ env.KUBE_SCORE_VERSION }}/kube-score_${{ env.KUBE_SCORE_VERSION }}_linux_amd64 -O kube-score
35- chmod 755 kube-score
34+ mkdir /tmp/bin
35+ wget https://github.com/zegl/kube-score/releases/download/v${{ env.KUBE_SCORE_VERSION }}/kube-score_${{ env.KUBE_SCORE_VERSION }}_linux_amd64 -O /tmp/bin/kube-score
36+ chmod 755 /tmp/bin/kube-score
3637
3738 - name : Kube-score generated manifests
38- run : helm template --values .ci/values-kube-score.yaml charts/* | ./kube-score score -
39- --ignore-test pod-networkpolicy
40- --ignore-test deployment-has-poddisruptionbudget
41- --ignore-test deployment-has-host-podantiaffinity
42- --ignore-test container-security-context
43- --ignore-test pod-probes
44- --ignore-test container-image-tag
45- --enable-optional-test container-security-context-privileged
39+ env :
40+ KUBE_SCORE : /tmp/bin/kube-score
41+ run : .ci/scripts/kube-score.sh
4642
4743 # python is a requirement for the chart-testing action below (supports yamllint among other tests)
4844 - uses : actions/setup-python@v2
You can’t perform that action at this time.
0 commit comments