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
a21dd8a3
Commit
a21dd8a3
authored
Dec 12, 2015
by
mqliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace OsImage to OSImage
parent
815fcc33
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
24 deletions
+24
-24
deep_copy_generated.go
pkg/api/deep_copy_generated.go
+1
-1
types.generated.go
pkg/api/types.generated.go
+6
-6
types.go
pkg/api/types.go
+1
-1
conversion_generated.go
pkg/api/v1/conversion_generated.go
+2
-2
deep_copy_generated.go
pkg/api/v1/deep_copy_generated.go
+1
-1
types.generated.go
pkg/api/v1/types.generated.go
+6
-6
types.go
pkg/api/v1/types.go
+1
-1
describe.go
pkg/kubectl/describe.go
+1
-1
kubelet.go
pkg/kubelet/kubelet.go
+1
-1
kubelet_test.go
pkg/kubelet/kubelet_test.go
+4
-4
No files found.
pkg/api/deep_copy_generated.go
View file @
a21dd8a3
...
...
@@ -1011,7 +1011,7 @@ func deepCopy_api_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conv
out
.
SystemUUID
=
in
.
SystemUUID
out
.
BootID
=
in
.
BootID
out
.
KernelVersion
=
in
.
KernelVersion
out
.
O
sImage
=
in
.
Os
Image
out
.
O
SImage
=
in
.
OS
Image
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
...
...
pkg/api/types.generated.go
View file @
a21dd8a3
...
...
@@ -28999,7 +28999,7 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
_
=
yym2272
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
s
Image
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
S
Image
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
...
...
@@ -29009,7 +29009,7 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
_
=
yym2273
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
s
Image
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
S
Image
))
}
}
if
yyr2258
||
yy2arr2258
{
...
...
@@ -29156,9 +29156,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
case
"osImage"
:
if
r
.
TryDecodeAsNil
()
{
x
.
O
s
Image
=
""
x
.
O
S
Image
=
""
}
else
{
x
.
O
s
Image
=
string
(
r
.
DecodeString
())
x
.
O
S
Image
=
string
(
r
.
DecodeString
())
}
case
"containerRuntimeVersion"
:
if
r
.
TryDecodeAsNil
()
{
...
...
@@ -29268,9 +29268,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
O
s
Image
=
""
x
.
O
S
Image
=
""
}
else
{
x
.
O
s
Image
=
string
(
r
.
DecodeString
())
x
.
O
S
Image
=
string
(
r
.
DecodeString
())
}
yyj2294
++
if
yyhl2294
{
pkg/api/types.go
View file @
a21dd8a3
...
...
@@ -1458,7 +1458,7 @@ type NodeSystemInfo struct {
// Kernel Version reported by the node.
KernelVersion
string
`json:"kernelVersion"`
// OS Image reported by the node.
O
s
Image
string
`json:"osImage"`
O
S
Image
string
`json:"osImage"`
// ContainerRuntime Version reported by the node.
ContainerRuntimeVersion
string
`json:"containerRuntimeVersion"`
// Kubelet Version reported by the node.
...
...
pkg/api/v1/conversion_generated.go
View file @
a21dd8a3
...
...
@@ -1428,7 +1428,7 @@ func autoconvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo,
out
.
SystemUUID
=
in
.
SystemUUID
out
.
BootID
=
in
.
BootID
out
.
KernelVersion
=
in
.
KernelVersion
out
.
O
sImage
=
in
.
Os
Image
out
.
O
SImage
=
in
.
OS
Image
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
...
...
@@ -4483,7 +4483,7 @@ func autoconvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out
out
.
SystemUUID
=
in
.
SystemUUID
out
.
BootID
=
in
.
BootID
out
.
KernelVersion
=
in
.
KernelVersion
out
.
O
sImage
=
in
.
Os
Image
out
.
O
SImage
=
in
.
OS
Image
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
...
...
pkg/api/v1/deep_copy_generated.go
View file @
a21dd8a3
...
...
@@ -1060,7 +1060,7 @@ func deepCopy_v1_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conve
out
.
SystemUUID
=
in
.
SystemUUID
out
.
BootID
=
in
.
BootID
out
.
KernelVersion
=
in
.
KernelVersion
out
.
O
sImage
=
in
.
Os
Image
out
.
O
SImage
=
in
.
OS
Image
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
...
...
pkg/api/v1/types.generated.go
View file @
a21dd8a3
...
...
@@ -28850,7 +28850,7 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
_
=
yym2259
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
s
Image
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
S
Image
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
...
...
@@ -28860,7 +28860,7 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
_
=
yym2260
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
s
Image
))
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
O
S
Image
))
}
}
if
yyr2245
||
yy2arr2245
{
...
...
@@ -29007,9 +29007,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
case
"osImage"
:
if
r
.
TryDecodeAsNil
()
{
x
.
O
s
Image
=
""
x
.
O
S
Image
=
""
}
else
{
x
.
O
s
Image
=
string
(
r
.
DecodeString
())
x
.
O
S
Image
=
string
(
r
.
DecodeString
())
}
case
"containerRuntimeVersion"
:
if
r
.
TryDecodeAsNil
()
{
...
...
@@ -29119,9 +29119,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
O
s
Image
=
""
x
.
O
S
Image
=
""
}
else
{
x
.
O
s
Image
=
string
(
r
.
DecodeString
())
x
.
O
S
Image
=
string
(
r
.
DecodeString
())
}
yyj2281
++
if
yyhl2281
{
pkg/api/v1/types.go
View file @
a21dd8a3
...
...
@@ -1834,7 +1834,7 @@ type NodeSystemInfo struct {
// Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
KernelVersion
string
`json:"kernelVersion"`
// OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).
O
s
Image
string
`json:"osImage"`
O
S
Image
string
`json:"osImage"`
// ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
ContainerRuntimeVersion
string
`json:"containerRuntimeVersion"`
// Kubelet Version reported by the node.
...
...
pkg/kubectl/describe.go
View file @
a21dd8a3
...
...
@@ -1329,7 +1329,7 @@ func describeNode(node *api.Node, pods []*api.Pod, events *api.EventList) (strin
fmt
.
Fprintf
(
out
,
" System UUID:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
SystemUUID
)
fmt
.
Fprintf
(
out
,
" Boot ID:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
BootID
)
fmt
.
Fprintf
(
out
,
" Kernel Version:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
KernelVersion
)
fmt
.
Fprintf
(
out
,
" OS Image:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
O
s
Image
)
fmt
.
Fprintf
(
out
,
" OS Image:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
O
S
Image
)
fmt
.
Fprintf
(
out
,
" Container Runtime Version:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
ContainerRuntimeVersion
)
fmt
.
Fprintf
(
out
,
" Kubelet Version:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
KubeletVersion
)
fmt
.
Fprintf
(
out
,
" Kube-Proxy Version:
\t
%s
\n
"
,
node
.
Status
.
NodeInfo
.
KubeProxyVersion
)
...
...
pkg/kubelet/kubelet.go
View file @
a21dd8a3
...
...
@@ -2776,7 +2776,7 @@ func (kl *Kubelet) setNodeStatusVersionInfo(node *api.Node) {
glog
.
Errorf
(
"Error getting version info: %v"
,
err
)
}
else
{
node
.
Status
.
NodeInfo
.
KernelVersion
=
verinfo
.
KernelVersion
node
.
Status
.
NodeInfo
.
O
s
Image
=
verinfo
.
ContainerOsVersion
node
.
Status
.
NodeInfo
.
O
S
Image
=
verinfo
.
ContainerOsVersion
// TODO: Determine the runtime is docker or rocket
node
.
Status
.
NodeInfo
.
ContainerRuntimeVersion
=
"docker://"
+
verinfo
.
DockerVersion
node
.
Status
.
NodeInfo
.
KubeletVersion
=
version
.
Get
()
.
String
()
...
...
pkg/kubelet/kubelet_test.go
View file @
a21dd8a3
...
...
@@ -2491,7 +2491,7 @@ func TestUpdateNewNodeStatus(t *testing.T) {
SystemUUID
:
"abc"
,
BootID
:
"1b3"
,
KernelVersion
:
"3.16.0-0.bpo.4-amd64"
,
O
s
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
O
S
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
ContainerRuntimeVersion
:
"docker://1.5.0"
,
KubeletVersion
:
version
.
Get
()
.
String
(),
KubeProxyVersion
:
version
.
Get
()
.
String
(),
...
...
@@ -2612,7 +2612,7 @@ func testDockerRuntimeVersion(t *testing.T) {
SystemUUID
:
"abc"
,
BootID
:
"1b3"
,
KernelVersion
:
"3.16.0-0.bpo.4-amd64"
,
O
s
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
O
S
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
ContainerRuntimeVersion
:
"docker://1.5.0"
,
KubeletVersion
:
version
.
Get
()
.
String
(),
KubeProxyVersion
:
version
.
Get
()
.
String
(),
...
...
@@ -2782,7 +2782,7 @@ func TestUpdateExistingNodeStatus(t *testing.T) {
SystemUUID
:
"abc"
,
BootID
:
"1b3"
,
KernelVersion
:
"3.16.0-0.bpo.4-amd64"
,
O
s
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
O
S
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
ContainerRuntimeVersion
:
"docker://1.5.0"
,
KubeletVersion
:
version
.
Get
()
.
String
(),
KubeProxyVersion
:
version
.
Get
()
.
String
(),
...
...
@@ -2909,7 +2909,7 @@ func TestUpdateNodeStatusWithoutContainerRuntime(t *testing.T) {
SystemUUID
:
"abc"
,
BootID
:
"1b3"
,
KernelVersion
:
"3.16.0-0.bpo.4-amd64"
,
O
s
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
O
S
Image
:
"Debian GNU/Linux 7 (wheezy)"
,
ContainerRuntimeVersion
:
"docker://1.5.0"
,
KubeletVersion
:
version
.
Get
()
.
String
(),
KubeProxyVersion
:
version
.
Get
()
.
String
(),
...
...
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