Skip to content

Commit 19486db

Browse files
authored
Merge pull request #393 from oreissig/oreissig.fix-helm-lint
fix: helm lint
2 parents 8abff90 + 7374090 commit 19486db

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
-1 Bytes
Binary file not shown.

charts/latest/csi-driver-nfs/templates/rbac-csi-nfs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ metadata:
1414
namespace: {{ .Release.Namespace }}
1515
{{ include "nfs.labels" . | indent 2 }}
1616
---
17-
{{- end -}}
17+
{{- end }}
1818

19-
{{- if .Values.rbac.create -}}
19+
{{ if .Values.rbac.create -}}
2020
kind: ClusterRole
2121
apiVersion: rbac.authorization.k8s.io/v1
2222
metadata:

hack/verify-helm-chart.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ function validate_image() {
3535
fi
3636
}
3737

38+
echo "Running helm lint"
39+
40+
if [[ -z "$(command -v helm)" ]]; then
41+
echo "Cannot find helm. Installing helm..."
42+
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
43+
fi
44+
45+
helm lint ${PKG_ROOT}/charts/latest/csi-driver-nfs
46+
3847
echo "Comparing image version between helm chart and manifests in deploy folder"
3948

4049
if [[ -z "$(command -v pip)" ]]; then

0 commit comments

Comments
 (0)