From 57460bdc42b279f067bf6b565f278f24258f269e Mon Sep 17 00:00:00 2001 From: Alejandro Pedraza Date: Wed, 6 Jan 2021 18:00:34 -0500 Subject: [PATCH] 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`. --- bin/helm-build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/helm-build b/bin/helm-build index 368836e22..b91b5cdfb 100755 --- a/bin/helm-build +++ b/bin/helm-build @@ -21,6 +21,13 @@ trap 'showErr' ERR bindir=$( cd "${BASH_SOURCE[0]%/*}" && 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-link "$bindir"/helm lint "$rootdir"/charts/partials