-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
44 lines (40 loc) · 1.17 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package pkg
// GenericNodeInfo struct used for 'node' info command
type GenericNodeInfo struct {
NodeName string
K8sVersion string
Image string
Os string
OsArch string
NodeStatus string
Taints []string
NodeProvider string
NodeTopologyRegion string
NodeTopologyZone string
}
// OutputOptsForGenericNodeInfo options set via flags, mostly used in the table-writer
// for output format selections
type OutputOptsForGenericNodeInfo struct {
ShowTaints bool
ShowNodeProviderInfo bool
ShowNodeTopologyInfo bool
}
// NodeCapacities required node capacity related info. Used by 'node capacity' command
type NodeCapacities struct {
NodeName string
CPU string // cores
Memory int64 // bytes
Disk int64 // bytes
EphemeralStorage int64 // bytes
PodCapacity string // count
}
// GenericNodepoolInfo required node pool info which is used 'nodepool' command
type GenericNodepoolInfo struct {
NodepoolID string
Node string
Provider string
InstanceType string
Region string
Zone string
K8sVersion string
}