Closed xiangjingli closed 9 months ago
/hold
@mikeshng It turns out the helm Get fails to figure the latest version for the 3.0.0-stable
semVer pattern.
I feel the PR may be a easy fix for covering most cases - When specifying the version pattern 3.0.0-stable
, users may mainly want to fetch the exact version of the chart, So unlikely they will use this pattern>3.0.0-stable
. Then only one version of the chart is fetched. Thus we won't call helm Get to figure out the latest version
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
6cfc950
) 55.21% compared to head (36293ca
) 55.71%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@mikeshng I realized there is a code defect in the previous fix due to my misunderstanding of the indexfile.entries
indexFile.Entries map[string]ChartVersions
Each map index is a chart name, and it could include multiple versions. So checking if there is only one version for the chart should be in each chart by looping the indexFile.Entries
/approve
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mikeshng, xiangjingli
The full list of commands accepted by this bot can be found here.
The pull request process is described here
…one version for the given chart
https://issues.redhat.com/browse/ACM-7031?focusedId=24072452&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-24072452