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
dfe5de3b
Commit
dfe5de3b
authored
Jun 06, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #25731 from Pensu/master
Automatic merge from submit-queue Adding version.Info in apiserver.go Fixes #17176
parents
015bc3d6
1a9f7e9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
3 deletions
+48
-3
version.json
api/swagger-spec/version.json
+46
-2
apiserver.go
pkg/apiserver/apiserver.go
+2
-1
No files found.
api/swagger-spec/version.json
View file @
dfe5de3b
...
...
@@ -9,7 +9,7 @@
"description"
:
"git code version from which this is built"
,
"operations"
:
[
{
"type"
:
"v
oid
"
,
"type"
:
"v
ersion.Info
"
,
"method"
:
"GET"
,
"summary"
:
"get the code version"
,
"nickname"
:
"getCodeVersion"
,
...
...
@@ -24,5 +24,49 @@
]
}
],
"models"
:
{}
"models"
:
{
"version.Info"
:
{
"id"
:
"version.Info"
,
"required"
:
[
"major"
,
"minor"
,
"gitVersion"
,
"gitCommit"
,
"gitTreeState"
,
"buildDate"
,
"goVersion"
,
"compiler"
,
"platform"
],
"properties"
:
{
"major"
:
{
"type"
:
"string"
},
"minor"
:
{
"type"
:
"string"
},
"gitVersion"
:
{
"type"
:
"string"
},
"gitCommit"
:
{
"type"
:
"string"
},
"gitTreeState"
:
{
"type"
:
"string"
},
"buildDate"
:
{
"type"
:
"string"
},
"goVersion"
:
{
"type"
:
"string"
},
"compiler"
:
{
"type"
:
"string"
},
"platform"
:
{
"type"
:
"string"
}
}
}
}
}
pkg/apiserver/apiserver.go
View file @
dfe5de3b
...
...
@@ -176,7 +176,8 @@ func InstallVersionHandler(mux Mux, container *restful.Container) {
Doc
(
"get the code version"
)
.
Operation
(
"getCodeVersion"
)
.
Produces
(
restful
.
MIME_JSON
)
.
Consumes
(
restful
.
MIME_JSON
))
Consumes
(
restful
.
MIME_JSON
)
.
Writes
(
version
.
Info
{}))
container
.
Add
(
versionWS
)
}
...
...
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