Skip to content

Commit

Permalink
chore: lint tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ievgenii Shepeliuk <[email protected]>
  • Loading branch information
eshepelyuk committed Feb 4, 2022
1 parent 76f1ac7 commit 3784576
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opa/templates/sar-clusterrolebinding.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if (and .Values.rbac.create .Values.sar.enabled) -}}
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
Expand Down
30 changes: 30 additions & 0 deletions test/linter/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,36 @@ if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set mgmt.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set sar.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set certManager.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set prometheus.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set admissionController.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

helm lint charts/opa --strict --set authz.enabled=true
if [ $? -ne 0 ]; then
exit 1
fi

echo "=================================================================================="
echo " LINT PASSED"
echo "=================================================================================="

0 comments on commit 3784576

Please sign in to comment.