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
0b6b7235
Commit
0b6b7235
authored
May 10, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run hack/update-all.sh
parent
c28524fb
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
382 additions
and
108 deletions
+382
-108
v1.json
api/swagger-spec/v1.json
+11
-1
definitions.html
docs/api-reference/v1/definitions.html
+15
-1
deep_copy_generated.go
pkg/api/deep_copy_generated.go
+2
-0
types.generated.go
pkg/api/types.generated.go
+135
-53
conversion_generated.go
pkg/api/v1/conversion_generated.go
+4
-0
deep_copy_generated.go
pkg/api/v1/deep_copy_generated.go
+2
-0
generated.pb.go
pkg/api/v1/generated.pb.go
+70
-0
generated.proto
pkg/api/v1/generated.proto
+6
-0
types.generated.go
pkg/api/v1/types.generated.go
+135
-53
types_swagger_doc_generated.go
pkg/api/v1/types_swagger_doc_generated.go
+2
-0
No files found.
api/swagger-spec/v1.json
View file @
0b6b7235
...
...
@@ -16063,7 +16063,9 @@
"osImage"
,
"containerRuntimeVersion"
,
"kubeletVersion"
,
"kubeProxyVersion"
"kubeProxyVersion"
,
"operatingSystem"
,
"architecture"
],
"properties"
:
{
"machineID"
:
{
...
...
@@ -16097,6 +16099,14 @@
"kubeProxyVersion"
:
{
"type"
:
"string"
,
"description"
:
"KubeProxy Version reported by the node."
},
"operatingSystem"
:
{
"type"
:
"string"
,
"description"
:
"The Operating System reported by the node"
},
"architecture"
:
{
"type"
:
"string"
,
"description"
:
"The Architecture reported by the node"
}
}
},
...
...
docs/api-reference/v1/definitions.html
View file @
0b6b7235
...
...
@@ -7549,6 +7549,20 @@ The resulting set of endpoints can be viewed as:<br>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
string
</p></td>
<td
class=
"tableblock halign-left valign-top"
></td>
</tr>
<tr>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
operatingSystem
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
The Operating System reported by the node
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
true
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
string
</p></td>
<td
class=
"tableblock halign-left valign-top"
></td>
</tr>
<tr>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
architecture
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
The Architecture reported by the node
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
true
</p></td>
<td
class=
"tableblock halign-left valign-top"
><p
class=
"tableblock"
>
string
</p></td>
<td
class=
"tableblock halign-left valign-top"
></td>
</tr>
</tbody>
</table>
...
...
@@ -7846,7 +7860,7 @@ The resulting set of endpoints can be viewed as:<br>
</div>
<div
id=
"footer"
>
<div
id=
"footer-text"
>
Last updated 2016-05-
06 04:28:14
UTC
Last updated 2016-05-
10 14:28:49
UTC
</div>
</div>
</body>
...
...
pkg/api/deep_copy_generated.go
View file @
0b6b7235
...
...
@@ -1585,6 +1585,8 @@ func DeepCopy_api_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conv
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
out
.
OperatingSystem
=
in
.
OperatingSystem
out
.
Architecture
=
in
.
Architecture
return
nil
}
...
...
pkg/api/types.generated.go
View file @
0b6b7235
...
...
@@ -34275,14 +34275,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
}
else
{
yysep2
:=
!
z
.
EncBinary
()
yy2arr2
:=
z
.
EncBasicHandle
()
.
StructToArray
var
yyq2
[
8
]
bool
var
yyq2
[
10
]
bool
_
,
_
,
_
=
yysep2
,
yyq2
,
yy2arr2
const
yyr2
bool
=
false
var
yynn2
int
if
yyr2
||
yy2arr2
{
r
.
EncodeArrayStart
(
8
)
r
.
EncodeArrayStart
(
10
)
}
else
{
yynn2
=
8
yynn2
=
10
for
_
,
b
:=
range
yyq2
{
if
b
{
yynn2
++
...
...
@@ -34444,6 +34444,44 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym28
:=
z
.
EncBinary
()
_
=
yym28
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
OperatingSystem
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"operatingSystem"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym29
:=
z
.
EncBinary
()
_
=
yym29
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
OperatingSystem
))
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym31
:=
z
.
EncBinary
()
_
=
yym31
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Architecture
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"architecture"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym32
:=
z
.
EncBinary
()
_
=
yym32
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Architecture
))
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapEnd1234
)
...
...
@@ -34552,6 +34590,18 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeProxyVersion
=
string
(
r
.
DecodeString
())
}
case
"operatingSystem"
:
if
r
.
TryDecodeAsNil
()
{
x
.
OperatingSystem
=
""
}
else
{
x
.
OperatingSystem
=
string
(
r
.
DecodeString
())
}
case
"architecture"
:
if
r
.
TryDecodeAsNil
()
{
x
.
Architecture
=
""
}
else
{
x
.
Architecture
=
string
(
r
.
DecodeString
())
}
default
:
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
}
// end switch yys3
...
...
@@ -34563,16 +34613,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
var
yyj1
2
int
var
yyb1
2
bool
var
yyhl1
2
bool
=
l
>=
0
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
var
yyj1
4
int
var
yyb1
4
bool
var
yyhl1
4
bool
=
l
>=
0
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34582,13 +34632,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
MachineID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34598,13 +34648,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
SystemUUID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34614,13 +34664,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
BootID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34630,13 +34680,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KernelVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34646,13 +34696,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
OSImage
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34662,13 +34712,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
ContainerRuntimeVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34678,13 +34728,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeletVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34694,18 +34744,50 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeProxyVersion
=
string
(
r
.
DecodeString
())
}
yyj14
++
if
yyhl14
{
yyb14
=
yyj14
>
l
}
else
{
yyb14
=
r
.
CheckBreak
()
}
if
yyb14
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
OperatingSystem
=
""
}
else
{
x
.
OperatingSystem
=
string
(
r
.
DecodeString
())
}
yyj14
++
if
yyhl14
{
yyb14
=
yyj14
>
l
}
else
{
yyb14
=
r
.
CheckBreak
()
}
if
yyb14
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
Architecture
=
""
}
else
{
x
.
Architecture
=
string
(
r
.
DecodeString
())
}
for
{
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
break
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecStructFieldNotFound
(
yyj1
2
-
1
,
""
)
z
.
DecStructFieldNotFound
(
yyj1
4
-
1
,
""
)
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
...
...
@@ -55547,7 +55629,7 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) {
yyrg1
:=
len
(
yyv1
)
>
0
yyv21
:=
yyv1
yyrl1
,
yyrt1
=
z
.
DecInferLen
(
yyl1
,
z
.
DecBasicHandle
()
.
MaxInitLen
,
5
36
)
yyrl1
,
yyrt1
=
z
.
DecInferLen
(
yyl1
,
z
.
DecBasicHandle
()
.
MaxInitLen
,
5
68
)
if
yyrt1
{
if
yyrl1
<=
cap
(
yyv1
)
{
yyv1
=
yyv1
[
:
yyrl1
]
pkg/api/v1/conversion_generated.go
View file @
0b6b7235
...
...
@@ -3588,6 +3588,8 @@ func autoConvert_v1_NodeSystemInfo_To_api_NodeSystemInfo(in *NodeSystemInfo, out
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
out
.
OperatingSystem
=
in
.
OperatingSystem
out
.
Architecture
=
in
.
Architecture
return
nil
}
...
...
@@ -3604,6 +3606,8 @@ func autoConvert_api_NodeSystemInfo_To_v1_NodeSystemInfo(in *api.NodeSystemInfo,
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
out
.
OperatingSystem
=
in
.
OperatingSystem
out
.
Architecture
=
in
.
Architecture
return
nil
}
...
...
pkg/api/v1/deep_copy_generated.go
View file @
0b6b7235
...
...
@@ -1532,6 +1532,8 @@ func DeepCopy_v1_NodeSystemInfo(in NodeSystemInfo, out *NodeSystemInfo, c *conve
out
.
ContainerRuntimeVersion
=
in
.
ContainerRuntimeVersion
out
.
KubeletVersion
=
in
.
KubeletVersion
out
.
KubeProxyVersion
=
in
.
KubeProxyVersion
out
.
OperatingSystem
=
in
.
OperatingSystem
out
.
Architecture
=
in
.
Architecture
return
nil
}
...
...
pkg/api/v1/generated.pb.go
View file @
0b6b7235
...
...
@@ -4163,6 +4163,14 @@ func (m *NodeSystemInfo) MarshalTo(data []byte) (int, error) {
i
++
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
len
(
m
.
KubeProxyVersion
)))
i
+=
copy
(
data
[
i
:
],
m
.
KubeProxyVersion
)
data
[
i
]
=
0x4a
i
++
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
len
(
m
.
OperatingSystem
)))
i
+=
copy
(
data
[
i
:
],
m
.
OperatingSystem
)
data
[
i
]
=
0x52
i
++
i
=
encodeVarintGenerated
(
data
,
i
,
uint64
(
len
(
m
.
Architecture
)))
i
+=
copy
(
data
[
i
:
],
m
.
Architecture
)
return
i
,
nil
}
...
...
@@ -8631,6 +8639,10 @@ func (m *NodeSystemInfo) Size() (n int) {
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
l
=
len
(
m
.
KubeProxyVersion
)
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
l
=
len
(
m
.
OperatingSystem
)
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
l
=
len
(
m
.
Architecture
)
n
+=
1
+
l
+
sovGenerated
(
uint64
(
l
))
return
n
}
...
...
@@ -21462,6 +21474,64 @@ func (m *NodeSystemInfo) Unmarshal(data []byte) error {
}
m
.
KubeProxyVersion
=
string
(
data
[
iNdEx
:
postIndex
])
iNdEx
=
postIndex
case
9
:
if
wireType
!=
2
{
return
fmt
.
Errorf
(
"proto: wrong wireType = %d for field OperatingSystem"
,
wireType
)
}
var
stringLen
uint64
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
if
shift
>=
64
{
return
ErrIntOverflowGenerated
}
if
iNdEx
>=
l
{
return
io
.
ErrUnexpectedEOF
}
b
:=
data
[
iNdEx
]
iNdEx
++
stringLen
|=
(
uint64
(
b
)
&
0x7F
)
<<
shift
if
b
<
0x80
{
break
}
}
intStringLen
:=
int
(
stringLen
)
if
intStringLen
<
0
{
return
ErrInvalidLengthGenerated
}
postIndex
:=
iNdEx
+
intStringLen
if
postIndex
>
l
{
return
io
.
ErrUnexpectedEOF
}
m
.
OperatingSystem
=
string
(
data
[
iNdEx
:
postIndex
])
iNdEx
=
postIndex
case
10
:
if
wireType
!=
2
{
return
fmt
.
Errorf
(
"proto: wrong wireType = %d for field Architecture"
,
wireType
)
}
var
stringLen
uint64
for
shift
:=
uint
(
0
);
;
shift
+=
7
{
if
shift
>=
64
{
return
ErrIntOverflowGenerated
}
if
iNdEx
>=
l
{
return
io
.
ErrUnexpectedEOF
}
b
:=
data
[
iNdEx
]
iNdEx
++
stringLen
|=
(
uint64
(
b
)
&
0x7F
)
<<
shift
if
b
<
0x80
{
break
}
}
intStringLen
:=
int
(
stringLen
)
if
intStringLen
<
0
{
return
ErrInvalidLengthGenerated
}
postIndex
:=
iNdEx
+
intStringLen
if
postIndex
>
l
{
return
io
.
ErrUnexpectedEOF
}
m
.
Architecture
=
string
(
data
[
iNdEx
:
postIndex
])
iNdEx
=
postIndex
default
:
iNdEx
=
preIndex
skippy
,
err
:=
skipGenerated
(
data
[
iNdEx
:
])
...
...
pkg/api/v1/generated.proto
View file @
0b6b7235
...
...
@@ -1322,6 +1322,12 @@ message NodeSystemInfo {
// KubeProxy Version reported by the node.
optional
string
kubeProxyVersion
=
8
;
// The Operating System reported by the node
optional
string
operatingSystem
=
9
;
// The Architecture reported by the node
optional
string
architecture
=
10
;
}
// ObjectFieldSelector selects an APIVersioned field of an object.
...
...
pkg/api/v1/types.generated.go
View file @
0b6b7235
...
...
@@ -34157,14 +34157,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
}
else
{
yysep2
:=
!
z
.
EncBinary
()
yy2arr2
:=
z
.
EncBasicHandle
()
.
StructToArray
var
yyq2
[
8
]
bool
var
yyq2
[
10
]
bool
_
,
_
,
_
=
yysep2
,
yyq2
,
yy2arr2
const
yyr2
bool
=
false
var
yynn2
int
if
yyr2
||
yy2arr2
{
r
.
EncodeArrayStart
(
8
)
r
.
EncodeArrayStart
(
10
)
}
else
{
yynn2
=
8
yynn2
=
10
for
_
,
b
:=
range
yyq2
{
if
b
{
yynn2
++
...
...
@@ -34326,6 +34326,44 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym28
:=
z
.
EncBinary
()
_
=
yym28
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
OperatingSystem
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"operatingSystem"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym29
:=
z
.
EncBinary
()
_
=
yym29
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
OperatingSystem
))
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayElem1234
)
yym31
:=
z
.
EncBinary
()
_
=
yym31
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Architecture
))
}
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapKey1234
)
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
"architecture"
))
z
.
EncSendContainerState
(
codecSelfer_containerMapValue1234
)
yym32
:=
z
.
EncBinary
()
_
=
yym32
if
false
{
}
else
{
r
.
EncodeString
(
codecSelferC_UTF81234
,
string
(
x
.
Architecture
))
}
}
if
yyr2
||
yy2arr2
{
z
.
EncSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
else
{
z
.
EncSendContainerState
(
codecSelfer_containerMapEnd1234
)
...
...
@@ -34434,6 +34472,18 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeProxyVersion
=
string
(
r
.
DecodeString
())
}
case
"operatingSystem"
:
if
r
.
TryDecodeAsNil
()
{
x
.
OperatingSystem
=
""
}
else
{
x
.
OperatingSystem
=
string
(
r
.
DecodeString
())
}
case
"architecture"
:
if
r
.
TryDecodeAsNil
()
{
x
.
Architecture
=
""
}
else
{
x
.
Architecture
=
string
(
r
.
DecodeString
())
}
default
:
z
.
DecStructFieldNotFound
(
-
1
,
yys3
)
}
// end switch yys3
...
...
@@ -34445,16 +34495,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var
h
codecSelfer1234
z
,
r
:=
codec1978
.
GenHelperDecoder
(
d
)
_
,
_
,
_
=
h
,
z
,
r
var
yyj1
2
int
var
yyb1
2
bool
var
yyhl1
2
bool
=
l
>=
0
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
var
yyj1
4
int
var
yyb1
4
bool
var
yyhl1
4
bool
=
l
>=
0
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34464,13 +34514,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
MachineID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34480,13 +34530,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
SystemUUID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34496,13 +34546,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
BootID
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34512,13 +34562,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KernelVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34528,13 +34578,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
OSImage
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34544,13 +34594,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
ContainerRuntimeVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34560,13 +34610,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeletVersion
=
string
(
r
.
DecodeString
())
}
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
...
...
@@ -34576,18 +34626,50 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
}
else
{
x
.
KubeProxyVersion
=
string
(
r
.
DecodeString
())
}
yyj14
++
if
yyhl14
{
yyb14
=
yyj14
>
l
}
else
{
yyb14
=
r
.
CheckBreak
()
}
if
yyb14
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
OperatingSystem
=
""
}
else
{
x
.
OperatingSystem
=
string
(
r
.
DecodeString
())
}
yyj14
++
if
yyhl14
{
yyb14
=
yyj14
>
l
}
else
{
yyb14
=
r
.
CheckBreak
()
}
if
yyb14
{
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
return
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
if
r
.
TryDecodeAsNil
()
{
x
.
Architecture
=
""
}
else
{
x
.
Architecture
=
string
(
r
.
DecodeString
())
}
for
{
yyj1
2
++
if
yyhl1
2
{
yyb1
2
=
yyj12
>
l
yyj1
4
++
if
yyhl1
4
{
yyb1
4
=
yyj14
>
l
}
else
{
yyb1
2
=
r
.
CheckBreak
()
yyb1
4
=
r
.
CheckBreak
()
}
if
yyb1
2
{
if
yyb1
4
{
break
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayElem1234
)
z
.
DecStructFieldNotFound
(
yyj1
2
-
1
,
""
)
z
.
DecStructFieldNotFound
(
yyj1
4
-
1
,
""
)
}
z
.
DecSendContainerState
(
codecSelfer_containerArrayEnd1234
)
}
...
...
@@ -55600,7 +55682,7 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) {
yyrg1
:=
len
(
yyv1
)
>
0
yyv21
:=
yyv1
yyrl1
,
yyrt1
=
z
.
DecInferLen
(
yyl1
,
z
.
DecBasicHandle
()
.
MaxInitLen
,
5
36
)
yyrl1
,
yyrt1
=
z
.
DecInferLen
(
yyl1
,
z
.
DecBasicHandle
()
.
MaxInitLen
,
5
68
)
if
yyrt1
{
if
yyrl1
<=
cap
(
yyv1
)
{
yyv1
=
yyv1
[
:
yyrl1
]
pkg/api/v1/types_swagger_doc_generated.go
View file @
0b6b7235
...
...
@@ -894,6 +894,8 @@ var map_NodeSystemInfo = map[string]string{
"containerRuntimeVersion"
:
"ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0)."
,
"kubeletVersion"
:
"Kubelet Version reported by the node."
,
"kubeProxyVersion"
:
"KubeProxy Version reported by the node."
,
"operatingSystem"
:
"The Operating System reported by the node"
,
"architecture"
:
"The Architecture reported by the node"
,
}
func
(
NodeSystemInfo
)
SwaggerDoc
()
map
[
string
]
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