|
|
|
@ -17,26 +17,27 @@ limitations under the License.
|
|
|
|
|
// Package version represents the current version of the project.
|
|
|
|
|
package version // import "k8s.io/helm/pkg/version"
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"k8s.io/helm/pkg/proto/hapi/version"
|
|
|
|
|
import "k8s.io/helm/pkg/proto/hapi/version"
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
// Version is the current version of the Helm.
|
|
|
|
|
// Update this whenever making a new release.
|
|
|
|
|
// The version is of the format Major.Minor.Patch[-Prerelease][+BuildMetadata]
|
|
|
|
|
//
|
|
|
|
|
// Increment major number for new feature additions and behavioral changes.
|
|
|
|
|
// Increment minor number for bug fixes and performance enhancements.
|
|
|
|
|
// Increment patch number for critical fixes to existing releases.
|
|
|
|
|
Version = "v2.0.0-alpha.4"
|
|
|
|
|
|
|
|
|
|
// BuildMetadata is extra build time data
|
|
|
|
|
BuildMetadata = ""
|
|
|
|
|
// GitCommit is the git sha1
|
|
|
|
|
GitCommit = ""
|
|
|
|
|
// GitTreeState is the state of the git tree
|
|
|
|
|
GitTreeState = ""
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Version is the current version of the Helm.
|
|
|
|
|
// Update this whenever making a new release.
|
|
|
|
|
// The version is of the format Major.Minor.Patch[-Prerelease][+BuildMetadata]
|
|
|
|
|
//
|
|
|
|
|
// Increment major number for new feature additions and behavioral changes.
|
|
|
|
|
// Increment minor number for bug fixes and performance enhancements.
|
|
|
|
|
// Increment patch number for critical fixes to existing releases.
|
|
|
|
|
//
|
|
|
|
|
// BuildMetadata gets filled in during build, do not touch
|
|
|
|
|
// GitCommit gets filled in during build, do not touch
|
|
|
|
|
var Version = "v2.0.0-alpha.4"
|
|
|
|
|
var BuildMetadata = ""
|
|
|
|
|
var GitCommit = ""
|
|
|
|
|
|
|
|
|
|
// GetVersion returns the semver string of the version
|
|
|
|
|
|
|
|
|
|
func GetVersion() string {
|
|
|
|
|
if BuildMetadata == "" {
|
|
|
|
|
return Version
|
|
|
|
@ -45,9 +46,10 @@ func GetVersion() string {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetVersionProto returns protobuf representing the version
|
|
|
|
|
func GetVersionProto() version.Version {
|
|
|
|
|
return version.Version{
|
|
|
|
|
SemVer: GetVersion(),
|
|
|
|
|
GitCommit: GitCommit,
|
|
|
|
|
func GetVersionProto() *version.Version {
|
|
|
|
|
return &version.Version{
|
|
|
|
|
SemVer: GetVersion(),
|
|
|
|
|
GitCommit: GitCommit,
|
|
|
|
|
GitTreeState: GitTreeState,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|