Skip to content

Commit

Permalink
Timeout helm_v2 chart check after 30 seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
brandond committed Oct 22, 2021
1 parent 568de38 commit 4d5377a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ if [[ "${BOOTSTRAP}" != "true" ]]; then
export HELM_HOST=127.0.0.1:44134

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

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

0 comments on commit 4d5377a

Please sign in to comment.