Merge pull request #393 from oreissig/oreissig.fix-helm-lint

fix: helm lint
This commit is contained in:
Kubernetes Prow Robot 2022-12-20 06:43:44 -08:00 committed by GitHub
commit 19486db87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View File

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

View File

@ -35,6 +35,15 @@ function validate_image() {
fi 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" echo "Comparing image version between helm chart and manifests in deploy folder"
if [[ -z "$(command -v pip)" ]]; then if [[ -z "$(command -v pip)" ]]; then