Skip to content

Commit 2210d0f

Browse files
authored
fix: issue with installing crd chart (#53)
- Fixes an issue with installing the CRD chart by removing the `v` prefix from the tag name. --------- Signed-off-by: JM Huibonhoa <jm.huibonhoa@solo.io>
1 parent 8791b32 commit 2210d0f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/cli/internal/commands/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ func getLatestReleaseTag(repo string) (string, error) {
6161
if err := json.NewDecoder(resp.Body).Decode(&release); err != nil {
6262
return "", err
6363
}
64+
65+
release.TagName = strings.TrimPrefix(release.TagName, "v")
66+
6467
return release.TagName, nil
6568
}
6669

0 commit comments

Comments
 (0)