Don't request Tiller version in installer

This makes the script hang for quite a while if it can't connect to Tiller to retrieve this information that isn't being used anyways.
pull/4062/head
James Meickle 7 years ago committed by GitHub
parent 0965b1c4d9
commit 931c80edea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -92,7 +92,7 @@ checkDesiredVersion() {
# if it needs to be changed. # if it needs to be changed.
checkHelmInstalledVersion() { checkHelmInstalledVersion() {
if [[ -f "${HELM_INSTALL_DIR}/${PROJECT_NAME}" ]]; then if [[ -f "${HELM_INSTALL_DIR}/${PROJECT_NAME}" ]]; then
local version=$(helm version | grep '^Client' | cut -d'"' -f2) local version=$(helm version -c | grep '^Client' | cut -d'"' -f2)
if [[ "$version" == "$TAG" ]]; then if [[ "$version" == "$TAG" ]]; then
echo "Helm ${version} is already ${DESIRED_VERSION:-latest}" echo "Helm ${version} is already ${DESIRED_VERSION:-latest}"
return 0 return 0

Loading…
Cancel
Save