Skip to content

Commit

Permalink
opt out from version normalization
Browse files Browse the repository at this point in the history
Signed-off-by: Utkarsh Srivastava <[email protected]>
  • Loading branch information
tangledbytes committed Aug 23, 2021
1 parent cbaca9a commit 41a27a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion utils/kubernetes/apply-helm-chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,12 @@ func createHelmPathFromHelmChartLocation(loc HelmChartLocation) (string, error)
// HelmConvertAppVersionToChartVersion takes in the repo, chart and app version and
// returns the corresponding chart version for the same
func HelmConvertAppVersionToChartVersion(repo, chart, appVersion string) (string, error) {
appVersion = normalizeVersion(appVersion)
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
func HelmAppVersionToChartVersion(repo, chart, appVersion string) (string, error) {
helmIndex, err := createHelmIndex(repo)
if err != nil {
return "", ErrCreatingHelmIndex(err)
Expand Down

0 comments on commit 41a27a3

Please sign in to comment.