package storage
import "k8s.io/kubernetes/test/e2e/storage"
Index ¶
- Constants
- func NewVolumeAttachment(vaName, pvName, nodeName string, status bool) *storagev1.VolumeAttachment
- func SkipUnlessLocalSSDExists(ctx context.Context, config *localTestConfig, ssdInterface, filesystemType string, node *v1.Node)
- func UpdatePVSize(ctx context.Context, pv *v1.PersistentVolume, size resource.Quantity, c clientset.Interface) (*v1.PersistentVolume, error)
Constants ¶
const ( // DirectoryLocalVolumeType is the default local volume type, aka a directory DirectoryLocalVolumeType localVolumeType = "dir" // DirectoryLinkLocalVolumeType is like DirectoryLocalVolumeType, // but it's a symbolic link to directory DirectoryLinkLocalVolumeType localVolumeType = "dir-link" // DirectoryBindMountedLocalVolumeType is like DirectoryLocalVolumeType // but bind mounted DirectoryBindMountedLocalVolumeType localVolumeType = "dir-bindmounted" // DirectoryLinkBindMountedLocalVolumeType is like DirectoryLocalVolumeType, // but it's a symbolic link to self bind mounted directory // Note that bind mounting at symbolic link actually mounts at directory it // links to. DirectoryLinkBindMountedLocalVolumeType localVolumeType = "dir-link-bindmounted" // TmpfsLocalVolumeType creates a tmpfs and mounts it TmpfsLocalVolumeType localVolumeType = "tmpfs" // GCELocalSSDVolumeType tests based on local ssd at /mnt/disks/by-uuid/ GCELocalSSDVolumeType localVolumeType = "gce-localssd-scsi-fs" // BlockLocalVolumeType creates a local file, formats it, and maps it as a block device. BlockLocalVolumeType localVolumeType = "block" // BlockFsWithFormatLocalVolumeType creates a local file serving as the backing for block device, // formats it, and mounts it to use as FS mode local volume. BlockFsWithFormatLocalVolumeType localVolumeType = "blockfswithformat" // BlockFsWithoutFormatLocalVolumeType creates a local file serving as the backing for block device, // does not format it manually, and mounts it to use as FS mode local volume. BlockFsWithoutFormatLocalVolumeType localVolumeType = "blockfswithoutformat" )
Functions ¶
func NewVolumeAttachment ¶
func NewVolumeAttachment(vaName, pvName, nodeName string, status bool) *storagev1.VolumeAttachment
func SkipUnlessLocalSSDExists ¶
func SkipUnlessLocalSSDExists(ctx context.Context, config *localTestConfig, ssdInterface, filesystemType string, node *v1.Node)
SkipUnlessLocalSSDExists takes in an ssdInterface (scsi/nvme) and a filesystemType (fs/block) and skips if a disk of that type does not exist on the node
func UpdatePVSize ¶
func UpdatePVSize(ctx context.Context, pv *v1.PersistentVolume, size resource.Quantity, c clientset.Interface) (*v1.PersistentVolume, error)
Source Files ¶
constants.go csi_inline.go csi_node.go csi_volumes.go csistoragecapacity.go detach_mounted.go empty_dir_wrapper.go ephemeral_volume.go flexvolume.go flexvolume_mounted_volume_resize.go flexvolume_online_resize.go generic_persistent_volume-disruptive.go helpers.go host_path_type.go in_tree_volumes.go local_volume_resize.go mounted_volume_resize.go nfs_persistent_volume-disruptive.go non_graceful_node_shutdown.go persistent_volumes-local.go persistent_volumes.go pv_protection.go pvc_protection.go pvc_storageclass.go static_pods.go storageclass.go subpath.go volume_attachment.go volume_metrics.go volume_provisioning.go volumeattributesclass.go
Directories ¶
Path | Synopsis |
---|---|
test/e2e/storage/csimock | |
test/e2e/storage/drivers | |
test/e2e/storage/drivers/csi-test | |
test/e2e/storage/drivers/csi-test/driver | |
test/e2e/storage/drivers/csi-test/mock | |
test/e2e/storage/drivers/csi-test/mock/cache | |
test/e2e/storage/drivers/csi-test/mock/service | |
test/e2e/storage/drivers/proxy | |
test/e2e/storage/external | |
test/e2e/storage/framework | |
test/e2e/storage/podlogs | Package podlogs enables live capturing of all events and log messages for some or all pods in a namespace as they get generated. |
test/e2e/storage/testsuites | |
test/e2e/storage/utils |
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 70 packages
- Last checked
- 3 hours ago –
Tools for package owners.