Skip to content

Commit

Permalink
Add function for getting app version from chart versino
Browse files Browse the repository at this point in the history
Signed-off-by: ashish <[email protected]>
  • Loading branch information
Revolyssup committed Feb 24, 2022
1 parent 6b00c44 commit 55faa88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/kubernetes/apply-helm-chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ func HelmConvertAppVersionToChartVersion(repo, chart, appVersion string) (string
return HelmAppVersionToChartVersion(repo, chart, normalizeVersion(appVersion))
}

// HelmAppVersionToChartVersion takes in the repo, chart and app version and
// returns the corresponding chart version for the same without normalizing the app version
// HelmChartVersionToAppVersion takes in the repo, chart and chart version and
// returns the corresponding app version for the same without normalizing the app version
func HelmChartVersionToAppVersion(repo, chart, chartVersion string) (string, error) {
helmIndex, err := createHelmIndex(repo)
if err != nil {
Expand Down

0 comments on commit 55faa88

Please sign in to comment.