fix: trim 'v' prefix when getting helper image tag version due to the new semver release pipeline

pull/718/head v4.4.8-rc.3
iwilltry42 3 years ago
parent af82c130c6
commit 6a58a9f57d
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 3
      version/version.go

@ -23,6 +23,7 @@ package version
import (
"os"
"strings"
"github.com/heroku/docker-registry-client/registry"
log "github.com/sirupsen/logrus"
@ -57,7 +58,7 @@ func GetHelperImageVersion() string {
if len(Version) == 0 {
return "latest"
}
return Version
return strings.TrimPrefix(Version, "v")
}
// GetK3sVersion returns the version string for K3s

Loading…
Cancel
Save