Commit dfe5de3b authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #25731 from Pensu/master

Automatic merge from submit-queue Adding version.Info in apiserver.go Fixes #17176
parents 015bc3d6 1a9f7e9a
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"description": "git code version from which this is built", "description": "git code version from which this is built",
"operations": [ "operations": [
{ {
"type": "void", "type": "version.Info",
"method": "GET", "method": "GET",
"summary": "get the code version", "summary": "get the code version",
"nickname": "getCodeVersion", "nickname": "getCodeVersion",
...@@ -24,5 +24,49 @@ ...@@ -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"
}
}
}
}
} }
...@@ -176,7 +176,8 @@ func InstallVersionHandler(mux Mux, container *restful.Container) { ...@@ -176,7 +176,8 @@ func InstallVersionHandler(mux Mux, container *restful.Container) {
Doc("get the code version"). Doc("get the code version").
Operation("getCodeVersion"). Operation("getCodeVersion").
Produces(restful.MIME_JSON). Produces(restful.MIME_JSON).
Consumes(restful.MIME_JSON)) Consumes(restful.MIME_JSON).
Writes(version.Info{}))
container.Add(versionWS) container.Add(versionWS)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment