Skip to content

Commit

Permalink
Fix to exec helm repo add for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Aug 15, 2024
1 parent 0434c5e commit 989b4bb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hack/test/test-kong-chart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
# Update submodule to the latest commit
git submodule update --init --recursive --remote --merge

[[ `which yq` ]] && YQ=yq || \
(
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O ./yq
chmod +x ./yq
YQ=./yq
)

# Loop through each directory in charts/charts and run helm dependency update
for dir in charts/charts/*; do
if [ -d "$dir" ]; then
cd "$dir"
$YQ e '.dependencies[] | .name + " " + .repository' Chart.lock | while read line; do
helm repo add $line --force-update
done
helm dependency build
cd -
fi
Expand Down

0 comments on commit 989b4bb

Please sign in to comment.