package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev

# Functions

CheckVolumeModeOfPath check mode of volume.
CreateStorageServer is a wrapper for startVolumeServer().
GenerateReadBlockCmd generates the corresponding command lines to read from a block device with the given file path.
GenerateReadFileCmd generates the corresponding command lines to read from a file with the given file path.
GetVolumeAttachmentName returns the hash value of the provisioner, the config ClientNodeSelection name, and the VolumeAttachment name of the PV that is bound to the PVC with the passed in claimName and claimNamespace.
InjectContent inserts index.html with given content into given volume.
NewNFSServer is a NFS-specific wrapper for CreateStorageServer.
Restart the passed-in nfs-server by issuing a `rpc.nfsd 1` command in the pod's (only) container.
Stop the passed-in nfs-server by issuing a `rpc.nfsd 0` command in the pod's (only) container.
TestServerCleanup cleans server pod.
TestVolumeClient start a client pod using given VolumeSource (exported by startVolumeServer()) and check that the pod sees expected data, e.g.
TestVolumeClientSlow is the same as TestVolumeClient except for its timeout.
WaitForVolumeAttachmentTerminated waits for the VolumeAttachment with the passed in attachmentName to be terminated.

# Constants

Gb is byte size of gigabyte.
GiB is byte size of gibibyte.
Kb is byte size of kilobyte.
KiB is byte size of kibibyte.
Mb is byte size of megabyte.
MiB is byte size of mebibyte.
PodCleanupTimeout is a waiting period for pod to be cleaned up and unmount its volumes so we don't tear down containers with NFS/Ceph server too early.
Tb is byte size of terabyte.
TiB is byte size of tebibyte.
VolumeServerPodStartupTimeout is a waiting period for volume server (Ceph, ...) to initialize itself.

# Structs

SizeRange encapsulates a range of sizes specified as minimum and maximum quantity strings Both values are optional.
Test contains a volume to mount into a client pod and its expected content.
TestConfig is a struct for configuration of one tests.