mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Merge pull request #1247 from filbranden/version_dev
Update version to use -dev suffix
This commit is contained in:
commit
70b026bd8d
@ -23,9 +23,10 @@ package version
|
|||||||
// version for ad-hoc builds (e.g. `go build`) that cannot get the version
|
// version for ad-hoc builds (e.g. `go build`) that cannot get the version
|
||||||
// information from git.
|
// information from git.
|
||||||
//
|
//
|
||||||
// The "+" in the version info indicates that fact, and it means the current
|
// The "-dev" suffix in the version info indicates that fact, and it means the
|
||||||
// build is from a version greater or equal to that version.
|
// current build is from a version greater that version. For example, v0.7-dev
|
||||||
// (e.g. v0.7+ means version >= 0.7 and < 0.8)
|
// means version > 0.7 and < 0.8. (There's exceptions to this rule, see
|
||||||
|
// docs/releasing.md for more details.)
|
||||||
//
|
//
|
||||||
// When releasing a new Kubernetes version, this file should be updated to
|
// When releasing a new Kubernetes version, this file should be updated to
|
||||||
// reflect the new version, and then a git annotated tag (using format vX.Y
|
// reflect the new version, and then a git annotated tag (using format vX.Y
|
||||||
@ -33,9 +34,10 @@ package version
|
|||||||
// to the commit that updates pkg/version/base.go
|
// to the commit that updates pkg/version/base.go
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
// TODO: Deprecate gitMajor and gitMinor, use only gitVersion instead.
|
||||||
gitMajor string = "0" // major version, always numeric
|
gitMajor string = "0" // major version, always numeric
|
||||||
gitMinor string = "2+" // minor version, numeric possibly followed by "+"
|
gitMinor string = "2+" // minor version, numeric possibly followed by "+"
|
||||||
gitVersion string = "v0.2+" // version from git, output of $(git describe)
|
gitVersion string = "v0.2-dev" // version from git, output of $(git describe)
|
||||||
gitCommit string = "" // sha1 from git, output of $(git rev-parse HEAD)
|
gitCommit string = "" // sha1 from git, output of $(git rev-parse HEAD)
|
||||||
gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty"
|
gitTreeState string = "not a git tree" // state of git tree, either "clean" or "dirty"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user