Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1257a35c
Commit
1257a35c
authored
Sep 15, 2017
by
sakeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golint version and fix versioning doc link
Signed-off-by:
sakeven
<
jc5930@sina.cn
>
parent
471b0beb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
.golint_failures
hack/.golint_failures
+0
-1
base.go
pkg/version/base.go
+7
-7
No files found.
hack/.golint_failures
View file @
1257a35c
...
@@ -436,7 +436,6 @@ pkg/util/term
...
@@ -436,7 +436,6 @@ pkg/util/term
pkg/util/threading
pkg/util/threading
pkg/util/tolerations
pkg/util/tolerations
pkg/util/workqueue/prometheus
pkg/util/workqueue/prometheus
pkg/version
pkg/version/verflag
pkg/version/verflag
pkg/volume/aws_ebs
pkg/volume/aws_ebs
pkg/volume/azure_dd
pkg/volume/azure_dd
...
...
pkg/version/base.go
View file @
1257a35c
...
@@ -39,11 +39,11 @@ var (
...
@@ -39,11 +39,11 @@ var (
// them irrelevant. (Next we'll take it out, which may muck with
// them irrelevant. (Next we'll take it out, which may muck with
// scripts consuming the kubectl version output - but most of
// scripts consuming the kubectl version output - but most of
// these should be looking at gitVersion already anyways.)
// these should be looking at gitVersion already anyways.)
gitMajor
string
=
""
// major version, always numeric
gitMajor
string
// major version, always numeric
gitMinor
string
=
""
// minor version, numeric possibly followed by "+"
gitMinor
string
// minor version, numeric possibly followed by "+"
// semantic version, derived by build scripts (see
// semantic version, derived by build scripts (see
// https://github.com/kubernetes/
kubernetes/blob/master/docs/design
/versioning.md
// https://github.com/kubernetes/
community/blob/master/contributors/design-proposals/release
/versioning.md
// for a detailed discussion of this field)
// for a detailed discussion of this field)
//
//
// TODO: This field is still called "gitVersion" for legacy
// TODO: This field is still called "gitVersion" for legacy
...
@@ -51,9 +51,9 @@ var (
...
@@ -51,9 +51,9 @@ var (
// semantic version is a git hash, but the version itself is no
// semantic version is a git hash, but the version itself is no
// longer the direct output of "git describe", but a slight
// longer the direct output of "git describe", but a slight
// translation to be semver compliant.
// translation to be semver compliant.
gitVersion
string
=
"v0.0.0-master+$Format:%h$"
gitVersion
=
"v0.0.0-master+$Format:%h$"
gitCommit
string
=
"$Format:%H$"
// sha1 from git, output of $(git rev-parse HEAD)
gitCommit
=
"$Format:%H$"
// sha1 from git, output of $(git rev-parse HEAD)
gitTreeState
string
=
"not a git tree"
// state of git tree, either "clean" or "dirty"
gitTreeState
=
"not a git tree"
// state of git tree, either "clean" or "dirty"
buildDate
string
=
"1970-01-01T00:00:00Z"
// build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
buildDate
=
"1970-01-01T00:00:00Z"
// build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
)
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment