Cleanup dependencies in bin/helm-build (#5491)

Chart dependencies are added as tarballs under the chart's `chart`
subdirectory. When we move chart dependencies around this can leave
stale dependencies behind, ensuing havoc. This PR removes those deps
before calling `helm dep up`.
This commit is contained in:
Alejandro Pedraza 2021-01-06 18:00:34 -05:00 committed by GitHub
parent b85928e73c
commit 57460bdc42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,13 @@ trap 'showErr' ERR
bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd ) bindir=$( cd "${BASH_SOURCE[0]%/*}" && pwd )
rootdir=$( cd "$bindir"/.. && pwd ) rootdir=$( cd "$bindir"/.. && pwd )
# cleanup dependencies
rm -f charts/linkerd2/charts/*
rm -f charts/linkerd2-cni/charts/*
rm -f charts/patch/charts/*
rm -f jaeger/charts/jaeger/charts/*
rm -f viz/charts/linkerd-viz/charts/*
"$bindir"/helm lint "$rootdir"/multicluster/charts/linkerd2-multicluster "$bindir"/helm lint "$rootdir"/multicluster/charts/linkerd2-multicluster
"$bindir"/helm lint "$rootdir"/multicluster/charts/linkerd2-multicluster-link "$bindir"/helm lint "$rootdir"/multicluster/charts/linkerd2-multicluster-link
"$bindir"/helm lint "$rootdir"/charts/partials "$bindir"/helm lint "$rootdir"/charts/partials