fix: helm lint

This commit is contained in:
Oliver Reißig 2022-12-20 13:50:05 +01:00
parent eb2c2b47f3
commit 73740905db
No known key found for this signature in database
GPG Key ID: 97AC5BDCA7568AB1
3 changed files with 11 additions and 2 deletions

View File

@ -14,9 +14,9 @@ metadata:
namespace: {{ .Release.Namespace }}
{{ include "nfs.labels" . | indent 2 }}
---
{{- end -}}
{{- end }}
{{- if .Values.rbac.create -}}
{{ if .Values.rbac.create -}}
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:

View File

@ -35,6 +35,15 @@ function validate_image() {
fi
}
echo "Running helm lint"
if [[ -z "$(command -v helm)" ]]; then
echo "Cannot find helm. Installing helm..."
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
fi
helm lint ${PKG_ROOT}/charts/latest/csi-driver-nfs
echo "Comparing image version between helm chart and manifests in deploy folder"
if [[ -z "$(command -v pip)" ]]; then