mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
add fstype for local volume source
This commit is contained in:
@@ -1513,10 +1513,14 @@ type KeyToPath struct {
|
|||||||
type LocalVolumeSource struct {
|
type LocalVolumeSource struct {
|
||||||
// The full path to the volume on the node.
|
// The full path to the volume on the node.
|
||||||
// It can be either a directory or block device (disk, partition, ...).
|
// It can be either a directory or block device (disk, partition, ...).
|
||||||
// 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
|
||||||
|
|
||||||
|
// Filesystem type to mount.
|
||||||
|
// It applies only when the Path is a block device.
|
||||||
|
// Must be a filesystem type supported by the host operating system.
|
||||||
|
// Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified.
|
||||||
|
// +optional
|
||||||
|
FSType *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents storage that is managed by an external CSI volume driver (Beta feature)
|
// Represents storage that is managed by an external CSI volume driver (Beta feature)
|
||||||
|
@@ -1601,10 +1601,14 @@ type KeyToPath struct {
|
|||||||
type LocalVolumeSource struct {
|
type LocalVolumeSource struct {
|
||||||
// The full path to the volume on the node.
|
// The full path to the volume on the node.
|
||||||
// It can be either a directory or block device (disk, partition, ...).
|
// It can be either a directory or block device (disk, partition, ...).
|
||||||
// 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"`
|
||||||
|
|
||||||
|
// Filesystem type to mount.
|
||||||
|
// It applies only when the Path is a block device.
|
||||||
|
// Must be a filesystem type supported by the host operating system.
|
||||||
|
// Ex. "ext4", "xfs", "ntfs". The default value is to auto-select a fileystem if unspecified.
|
||||||
|
// +optional
|
||||||
|
FSType *string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents storage that is managed by an external CSI volume driver (Beta feature)
|
// Represents storage that is managed by an external CSI volume driver (Beta feature)
|
||||||
|
Reference in New Issue
Block a user