|
1 | 1 | package client |
2 | 2 |
|
3 | 3 | const ( |
4 | | - NodeStatusType = "nodeStatus" |
5 | | - NodeStatusFieldAllocatable = "allocatable" |
6 | | - NodeStatusFieldCapacity = "capacity" |
7 | | - NodeStatusFieldConditions = "conditions" |
8 | | - NodeStatusFieldDockerInfo = "dockerInfo" |
9 | | - NodeStatusFieldExternalIPAddress = "externalIpAddress" |
10 | | - NodeStatusFieldHostname = "hostname" |
11 | | - NodeStatusFieldIPAddress = "ipAddress" |
12 | | - NodeStatusFieldInfo = "info" |
13 | | - NodeStatusFieldLimits = "limits" |
14 | | - NodeStatusFieldNodeAnnotations = "nodeAnnotations" |
15 | | - NodeStatusFieldNodeConfig = "rkeNode" |
16 | | - NodeStatusFieldNodeLabels = "nodeLabels" |
17 | | - NodeStatusFieldNodeName = "nodeName" |
18 | | - NodeStatusFieldNodeTaints = "nodeTaints" |
19 | | - NodeStatusFieldRequested = "requested" |
20 | | - NodeStatusFieldVolumesAttached = "volumesAttached" |
21 | | - NodeStatusFieldVolumesInUse = "volumesInUse" |
| 4 | + NodeStatusType = "nodeStatus" |
| 5 | + NodeStatusFieldAllocatable = "allocatable" |
| 6 | + NodeStatusFieldAppliedNodeVersion = "appliedNodeVersion" |
| 7 | + NodeStatusFieldCapacity = "capacity" |
| 8 | + NodeStatusFieldConditions = "conditions" |
| 9 | + NodeStatusFieldDockerInfo = "dockerInfo" |
| 10 | + NodeStatusFieldExternalIPAddress = "externalIpAddress" |
| 11 | + NodeStatusFieldHostname = "hostname" |
| 12 | + NodeStatusFieldIPAddress = "ipAddress" |
| 13 | + NodeStatusFieldInfo = "info" |
| 14 | + NodeStatusFieldLimits = "limits" |
| 15 | + NodeStatusFieldNodeAnnotations = "nodeAnnotations" |
| 16 | + NodeStatusFieldNodeConfig = "rkeNode" |
| 17 | + NodeStatusFieldNodeLabels = "nodeLabels" |
| 18 | + NodeStatusFieldNodeName = "nodeName" |
| 19 | + NodeStatusFieldNodeTaints = "nodeTaints" |
| 20 | + NodeStatusFieldRequested = "requested" |
| 21 | + NodeStatusFieldVolumesAttached = "volumesAttached" |
| 22 | + NodeStatusFieldVolumesInUse = "volumesInUse" |
22 | 23 | ) |
23 | 24 |
|
24 | 25 | type NodeStatus struct { |
25 | | - Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"` |
26 | | - Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` |
27 | | - Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` |
28 | | - DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"` |
29 | | - ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"` |
30 | | - Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` |
31 | | - IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"` |
32 | | - Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"` |
33 | | - Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"` |
34 | | - NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"` |
35 | | - NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"` |
36 | | - NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"` |
37 | | - NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"` |
38 | | - NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"` |
39 | | - Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"` |
40 | | - VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"` |
41 | | - VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"` |
| 26 | + Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"` |
| 27 | + AppliedNodeVersion string `json:"appliedNodeVersion,omitempty" yaml:"appliedNodeVersion,omitempty"` |
| 28 | + Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` |
| 29 | + Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"` |
| 30 | + DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"` |
| 31 | + ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"` |
| 32 | + Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"` |
| 33 | + IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"` |
| 34 | + Info *NodeInfo `json:"info,omitempty" yaml:"info,omitempty"` |
| 35 | + Limits map[string]string `json:"limits,omitempty" yaml:"limits,omitempty"` |
| 36 | + NodeAnnotations map[string]string `json:"nodeAnnotations,omitempty" yaml:"nodeAnnotations,omitempty"` |
| 37 | + NodeConfig *RKEConfigNode `json:"rkeNode,omitempty" yaml:"rkeNode,omitempty"` |
| 38 | + NodeLabels map[string]string `json:"nodeLabels,omitempty" yaml:"nodeLabels,omitempty"` |
| 39 | + NodeName string `json:"nodeName,omitempty" yaml:"nodeName,omitempty"` |
| 40 | + NodeTaints []Taint `json:"nodeTaints,omitempty" yaml:"nodeTaints,omitempty"` |
| 41 | + Requested map[string]string `json:"requested,omitempty" yaml:"requested,omitempty"` |
| 42 | + VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty" yaml:"volumesAttached,omitempty"` |
| 43 | + VolumesInUse []string `json:"volumesInUse,omitempty" yaml:"volumesInUse,omitempty"` |
42 | 44 | } |
0 commit comments