helm-spray
helm-spray copied to clipboard
App Version of Releases are umbrella chart versions and not sub-chart version
After installation using helm spray
, the App Version that is displayed for each of the Releases when running a helm list
is the AppVersion of the umbrella chart, and not the AppVersion of each individual sub-chart.
NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
mysql 1 Fri Feb 1 08:55:07 2019 DEPLOYED solution-0.1 0.1 default
postgres 2 Fri Feb 1 08:55:06 2019 DEPLOYED solution-0.1 0.1 default
redis 1 Fri Feb 1 08:55:08 2019 DEPLOYED solution-0.1 0.1 default
This can be understood because helm spray
is internally running regular helm upgrade
commands on the umbrella chart when upgrading the sub-charts... but this is a pity not to have the sub-charts versions displayed here instead!
A possible solution to get the sub-chart AppVersion instead of the umbrella chart AppVersion might be to dynamically update the umbrella chart (using the helm API) just before calling the UpgradeWithValues
function, setting the sub-chart AppVersion in place of the umbrella chart AppVersion, and then doing the reverse change after the UpgradeWithValues
execution (whatever the UpgradeWithValues
is completed correctly or not).
What do you think about this option ? I'm not so happy because it generates an update of the Chart.yaml
file, with the risk that the reverse action is not done (because of a badly catched error case, or because of a CTRL-c ...), but I don't see so much alternate solutions!...