mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
Add VolumesAttached field to Node Status API
This commit is contained in:
@@ -1989,10 +1989,21 @@ type NodeStatus struct {
|
||||
Images []ContainerImage `json:"images,omitempty"`
|
||||
// List of attachable volumes in use (mounted) by the node.
|
||||
VolumesInUse []UniqueVolumeName `json:"volumesInUse,omitempty"`
|
||||
// List of volumes that are attached to the node.
|
||||
VolumesAttached []AttachedVolume `json:"volumesAttached,omitempty"`
|
||||
}
|
||||
|
||||
type UniqueVolumeName string
|
||||
|
||||
// AttachedVolume describes a volume attached to a node
|
||||
type AttachedVolume struct {
|
||||
// Name of the attached volume
|
||||
Name UniqueVolumeName `json:"name"`
|
||||
|
||||
// DevicePath represents the device path where the volume should be avilable
|
||||
DevicePath string `json:"devicePath"`
|
||||
}
|
||||
|
||||
// Describe a container image
|
||||
type ContainerImage struct {
|
||||
// Names by which this image is known.
|
||||
|
||||
Reference in New Issue
Block a user