There was an error while loading. Please reload this page.
2 parents 8d41104 + 24607b8 commit 02e5f32Copy full SHA for 02e5f32
hack/verify-helm-chart-index.sh
@@ -19,6 +19,7 @@ set -euo pipefail
19
readonly PKG_ROOT="$(git rev-parse --show-toplevel)"
20
21
INDEX=${PKG_ROOT}/charts/index.yaml
22
+ignore_filename=""
23
24
function check_url() {
25
url=$1
@@ -35,6 +36,12 @@ function check_url() {
35
36
echo "$local does not exist"
37
# ignore url which contains latest
38
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
45
echo "ignore $url"
46
return
47
fi
0 commit comments