Skip to content

Commit a53a517

Browse files
committed
Add the Swap field to NodeSystemInfo
Signed-off-by: Itamar Holder <[email protected]>
1 parent f007012 commit a53a517

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

pkg/apis/core/types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5176,6 +5176,15 @@ type NodeSystemInfo struct {
51765176
OperatingSystem string
51775177
// The Architecture reported by the node
51785178
Architecture string
5179+
// Swap Info reported by the node.
5180+
Swap *NodeSwapStatus
5181+
}
5182+
5183+
// NodeSwapStatus represents swap memory information.
5184+
type NodeSwapStatus struct {
5185+
// Total amount of swap memory in bytes.
5186+
// +optional
5187+
Capacity *int64
51795188
}
51805189

51815190
// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.

staging/src/k8s.io/api/core/v1/types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6187,6 +6187,15 @@ type NodeSystemInfo struct {
61876187
OperatingSystem string `json:"operatingSystem" protobuf:"bytes,9,opt,name=operatingSystem"`
61886188
// The Architecture reported by the node
61896189
Architecture string `json:"architecture" protobuf:"bytes,10,opt,name=architecture"`
6190+
// Swap Info reported by the node.
6191+
Swap *NodeSwapStatus `json:"swap,omitempty" protobuf:"bytes,11,opt,name=swap"`
6192+
}
6193+
6194+
// NodeSwapStatus represents swap memory information.
6195+
type NodeSwapStatus struct {
6196+
// Total amount of swap memory in bytes.
6197+
// +optional
6198+
Capacity *int64 `json:"capacity,omitempty" protobuf:"varint,1,opt,name=capacity"`
61906199
}
61916200

61926201
// NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.

0 commit comments

Comments
 (0)