mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
update comments for local volume
This commit is contained in:
parent
7243ac9091
commit
fde414601e
@ -1434,11 +1434,13 @@ type KeyToPath struct {
|
|||||||
Mode *int32
|
Mode *int32
|
||||||
}
|
}
|
||||||
|
|
||||||
// Local represents directly-attached storage with node affinity
|
// Local represents directly-attached storage with node affinity (Beta feature)
|
||||||
type LocalVolumeSource struct {
|
type LocalVolumeSource struct {
|
||||||
// The full path to the volume on the node
|
// The full path to the volume on the node.
|
||||||
// For alpha, this path must be a directory
|
// It can be either a directory or block device (disk, partition, ...).
|
||||||
// Once block as a source is supported, then this path can point to a block device
|
// Directories can be represented only by PersistentVolume with VolumeMode=Filesystem.
|
||||||
|
// Block devices can be represented only by VolumeMode=Block, which also requires the
|
||||||
|
// BlockVolume alpha feature gate to be enabled.
|
||||||
Path string
|
Path string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1513,11 +1513,13 @@ type KeyToPath struct {
|
|||||||
Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"`
|
Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Local represents directly-attached storage with node affinity
|
// Local represents directly-attached storage with node affinity (Beta feature)
|
||||||
type LocalVolumeSource struct {
|
type LocalVolumeSource struct {
|
||||||
// The full path to the volume on the node
|
// The full path to the volume on the node.
|
||||||
// For alpha, this path must be a directory
|
// It can be either a directory or block device (disk, partition, ...).
|
||||||
// Once block as a source is supported, then this path can point to a block device
|
// Directories can be represented only by PersistentVolume with VolumeMode=Filesystem.
|
||||||
|
// Block devices can be represented only by VolumeMode=Block, which also requires the
|
||||||
|
// BlockVolume alpha feature gate to be enabled.
|
||||||
Path string `json:"path" protobuf:"bytes,1,opt,name=path"`
|
Path string `json:"path" protobuf:"bytes,1,opt,name=path"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user