Skip to content

Commit 4d5377a

Browse files
committed
Timeout helm_v2 chart check after 30 seconds
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
1 parent 568de38 commit 4d5377a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entry

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ if [[ "${BOOTSTRAP}" != "true" ]]; then
134134
export HELM_HOST=127.0.0.1:44134
135135

136136
helm_v2 init --skip-refresh --client-only --stable-repo-url ${STABLE_REPO_URL}
137-
V2_CHART_EXISTS=$(helm_v2 ls --all "^${NAME}\$" --output json | jq -r '.Releases | length')
137+
V2_CHART_EXISTS=$(timeout -s KILL 30 helm_v2 ls --all "^${NAME}\$" --output json | jq -r '.Releases | length')
138138
fi
139139

140140
if [[ "${V2_CHART_EXISTS}" == "1" ]] || [[ "${HELM_VERSION}" == "v2" ]]; then

0 commit comments

Comments
 (0)