Skip to content

Commit 5b1f701

Browse files
committed
feat: external volumes
Add new volume type for managing external volume mounts - e.g. NFS or Virtiofs volumes Signed-off-by: Mateusz Urbanek <[email protected]>
1 parent 80ab7a0 commit 5b1f701

File tree

20 files changed

+1375
-42
lines changed

20 files changed

+1375
-42
lines changed

api/resource/definitions/enums/enums.proto

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,21 @@ enum BlockFilesystemType {
707707
FILESYSTEM_TYPE_SWAP = 5;
708708
}
709709

710+
// BlockMountType describes volume type.
711+
enum BlockMountType {
712+
MOUNT_TYPE_VIRTIOFS = 0;
713+
MOUNT_TYPE_NFS = 1;
714+
}
715+
716+
// MountType describes volume type.
717+
enum BlockNFSVersionType {
718+
NFS_VERSION_TYPE4_2 = 0;
719+
NFS_VERSION_TYPE4_1 = 1;
720+
NFS_VERSION_TYPE4 = 2;
721+
NFS_VERSION_TYPE3 = 3;
722+
NFS_VERSION_TYPE2 = 4;
723+
}
724+
710725
// BlockVolumePhase describes volume phase.
711726
enum BlockVolumePhase {
712727
VOLUME_PHASE_WAITING = 0;
@@ -727,6 +742,7 @@ enum BlockVolumeType {
727742
VOLUME_TYPE_DIRECTORY = 3;
728743
VOLUME_TYPE_SYMLINK = 4;
729744
VOLUME_TYPE_OVERLAY = 5;
745+
VOLUME_TYPE_EXTERNAL = 6;
730746
}
731747

732748
// CriImageCacheStatus describes image cache status type.

0 commit comments

Comments
 (0)