package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
AllEphemeralTestPatterns returns all pre-defined test patterns for generic and CSI ephemeral inline volumes.
CSIEphemeralTestPatterns returns the test patterns for CSI ephemeral inline volumes.
CSIInlineVolumesEnabled checks whether the running cluster has the CSIInlineVolumes feature gate enabled.
ExpandPVCSize expands PVC size.
GenericEphemeralTestPatterns returns the test patterns for generic ephemeral inline volumes.
GenericEphemeralVolumesEnabled checks whether the running cluster has the GenericEphemeralVolume feature gate enabled.
HaveCapacitiesForClass filters all storage capacity objects in a *storagev1.CSIStorageCapacityList by storage class.
HaveCapacitiesForClassAndNodes matches objects by storage class name.
InitCapacityTestSuite returns capacityTestSuite that implements TestSuite interface\ using test suite default patterns.
InitCustomCapacityTestSuite returns capacityTestSuite that implements TestSuite interface using custom test patterns.
InitCustomDisruptiveTestSuite returns subPathTestSuite that implements TestSuite interface using custom test patterns.
InitCustomEphemeralTestSuite returns ephemeralTestSuite that implements TestSuite interface using custom test patterns.
InitCustomFsGroupChangePolicyTestSuite returns fsGroupChangePolicyTestSuite that implements TestSuite interface.
InitCustomMultiVolumeTestSuite returns multiVolumeTestSuite that implements TestSuite interface using custom test patterns.
InitCustomProvisioningTestSuite returns provisioningTestSuite that implements TestSuite interface using custom test patterns.
InitCustomSnapshottableStressTestSuite returns snapshottableStressTestSuite that implements TestSuite interface using custom test patterns.
InitCustomSnapshottableTestSuite returns snapshottableTestSuite that implements TestSuite interface using custom test patterns.
InitCustomSubPathTestSuite returns subPathTestSuite that implements TestSuite interface using custom test patterns.
InitCustomTopologyTestSuite returns topologyTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeExpandTestSuite returns volumeExpandTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeIOTestSuite returns volumeIOTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeLimitsTestSuite returns volumeLimitsTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeModeTestSuite returns volumeModeTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeModifyTestSuite returns volumeModifyTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumesTestSuite returns volumesTestSuite that implements TestSuite interface using custom test patterns.
InitCustomVolumeStressTestSuite returns volumeStressTestSuite that implements TestSuite interface using custom test patterns.
InitDisruptiveTestSuite returns subPathTestSuite that implements TestSuite interface using test suite default patterns.
InitEphemeralTestSuite returns ephemeralTestSuite that implements TestSuite interface using test suite default patterns.
InitFsGroupChangePolicyTestSuite returns fsGroupChangePolicyTestSuite that implements TestSuite interface.
InitMultiVolumeTestSuite returns multiVolumeTestSuite that implements TestSuite interface using test suite default patterns.
InitProvisioningTestSuite returns provisioningTestSuite that implements TestSuite interface\ using test suite default patterns.
InitPvcDeletionPerformanceTestSuite returns pvcDeletionPerformanceTestSuite that implements TestSuite interface This test suite brings up a number of pods and PVCS (configured upstream), deletes the pods, and then deletes the PVCs.
InitReadWriteOncePodTestSuite returns a test suite for the ReadWriteOncePod PersistentVolume access mode feature.
InitSnapshottableStressTestSuite returns snapshottableStressTestSuite that implements TestSuite interface using testsuite default patterns.
InitSnapshottableTestSuite returns snapshottableTestSuite that implements TestSuite interface using testsuite default patterns.
InitSubPathTestSuite returns subPathTestSuite that implements TestSuite interface using testsuite default patterns.
InitTopologyTestSuite returns topologyTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeExpandTestSuite returns volumeExpandTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeIOTestSuite returns volumeIOTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeLimitsTestSuite returns volumeLimitsTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeModeTestSuite returns volumeModeTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeModifyTestSuite returns volumeModifyTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumePerformanceTestSuite returns volumePerformanceTestSuite that implements TestSuite interface.
InitVolumesTestSuite returns volumesTestSuite that implements TestSuite interface using testsuite default patterns.
InitVolumeStressTestSuite returns volumeStressTestSuite that implements TestSuite interface using testsuite default patterns.
MatchCapacities runs some kind of check against *storagev1.CSIStorageCapacityList.
MultiplePVMountSingleNodeCheck checks that multiple PV pointing to the same underlying storage can be mounted simultaneously on a single node.
PVMultiNodeCheck checks that a PV retains data when moved between nodes.
PVWriteReadSingleNodeCheck checks that a PV retains data on a single node and returns the PV.
RunInPodWithVolume runs a command in a pod with given claim mounted to /mnt directory.
SetPVCVACName sets the VolumeAttributesClassName on a PVC object.
SetupStorageClass ensures that a StorageClass from a spec exists, if the StorageClass already exists then it's returned as it is, if it doesn't exist then it's created first and then returned, if the spec is nil then we return the `default` StorageClass.
StartInPodWithInlineVolume starts a command in a pod with given volume(s) mounted to /mnt/test-<number> directory.
StartInPodWithVolume starts a command in a pod with given claim mounted to /mnt directory The caller is responsible for checking the pod and deleting it.
StartInPodWithVolumeSource starts a command in a pod with given volume mounted to /mnt directory The caller is responsible for checking the pod and deleting it.
StopPod first tries to log the output of the pod's container, then deletes the pod and waits for that to succeed.
StopPodAndDependents first tries to log the output of the pod's container, then deletes the pod and waits for that to succeed.
SubpathTestPod returns a pod spec for subpath tests.
TestAccessMultipleVolumesAcrossPodRecreation tests access to multiple volumes from single pod, then recreate pod on the same or different node depending on requiresSameNode, and recheck access to the volumes from the recreated pod.
TestBasicSubpath runs basic subpath test.
TestBasicSubpathFile runs basic subpath file test.
TestConcurrentAccessToRelatedVolumes tests access to multiple volumes from multiple pods.
TestConcurrentAccessToSingleVolume tests access to a single volume from multiple pods, then delete the last pod, and recheck access to the volume after pod deletion to check if other pod deletion doesn't affect.
TestPodContainerRestartWithConfigmapModified tests that container can restart to stabilize when configmap has been modified.
VolumeSourceEnabled checks whether a certain kind of volume source is enabled by trying to create a pod that uses it.
WaitForControllerVolumeResize waits for the controller resize to be finished.
WaitForFSResize waits for the filesystem in the pv to be resized.
WaitForPendingFSResizeCondition waits for pvc to have resize condition.
WaitForResizingCondition waits for the pvc condition to be PersistentVolumeClaimResizing.
# Variables
BaseSuites is a list of storage test suites that work for in-tree and CSI drivers.
CSISuites is a list of storage test suites that work only for CSI drivers.
# Structs
EphemeralTest represents parameters to be used by tests for inline volumes.
StorageClassTest represents parameters to be used by provisioning tests.
# Interfaces
CapacityMatcher can be used to compose different matchers where one adds additional checks for CSIStorageCapacity objects already checked by another.