helmfile
helmfile copied to clipboard
helmfile panic with helm 3.4
I am getting this message when I run helmfile apply:
panic: error parsing helm verion 'v3.4+unreleased+g14a2aac'
This is happening on alpine linux with the latest helm 3.4 from the alpine package repository along with latest helmfile from github repository.
Full output of helm version command is here:
version.BuildInfo{Version:"v3.4+unreleased", GitCommit:"14a2aac38244afd14d093fdd32234385a1f94d43", GitTreeState:"dirty", GoVersion:"go1.15.6"}
Temporary solution for me is to use helm release from github instead of one from alpine repository.
Still wondering about the solution 🥇 ?! tested with helmfile v0.144.0 and even latest 0.151.0 ... both returned:
panic: error parsing helm version 'v3.9.0+3.el8+ge09b16a'
Seems like helmfile cannot parse the version of helm if it includes "+" Should i do the this workaround 😂 !
helmpath=$(which helm)
sudo mv ${helmpath} ${helmpath}_original
sudo bash -c "cat > ${helmpath} <<EOF
if [ "FSTARG" = "version" ]; then
echo -n 'version.BuildInfo{Version:"v3.9.0", GitCommit:"e09b16a5119e20607a4a7ae9884a96331ffff1de", GitTreeState:"clean", GoVersion:"go1.17.7"}'
else
${helmpath}_original ALLARGS
end
EOF
"
sudo sed -i 's@FSTARG@${1}@g; s#ALLARGS#${@}#g;' ${helmpath}
# then
sudo chmod +x ${helmpath}
rollback
sudo rm -rf ${helmpath}
sudo mv ${helmpath}_original ${helmpath}
@abdennour please post the new issue in helmfile/helmfile repo. And where did you download your helm binary?