Skip to content

Commit 96037fc

Browse files
authored
Merge pull request #2177 from k8s-infra-cherrypick-robot/cherry-pick-2175-to-release-1.27
[release-1.27] test: refine verify-helm-chart-index.sh
2 parents b21ab69 + d69568b commit 96037fc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hack/verify-helm-chart-index.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ set -euo pipefail
1919
readonly PKG_ROOT="$(git rev-parse --show-toplevel)"
2020

2121
INDEX=${PKG_ROOT}/charts/index.yaml
22+
ignore_filename=""
2223

2324
function check_url() {
2425
url=$1
@@ -35,6 +36,12 @@ function check_url() {
3536
echo "$local does not exist"
3637
# ignore url which contains latest
3738
if [[ "$url" == *"latest"* ]]; then
39+
echo "ignore $url"
40+
ignore_filename=$(basename "$url")
41+
return
42+
fi
43+
# if ignore_filename is set, ignore url which contains ignore_filename
44+
if [[ -n "${ignore_filename:-}" && "$url" == *"$ignore_filename"* ]]; then
3845
echo "ignore $url"
3946
return
4047
fi

0 commit comments

Comments
 (0)