Documentation ¶
Index ¶
- Constants
- Variables
- type DataSource
- type DynamicallyProvisionedAccountWithTags
- type DynamicallyProvisionedCmdVolumeTest
- type DynamicallyProvisionedCollocatedPodTest
- type DynamicallyProvisionedDeletePodTest
- type DynamicallyProvisionedInlineVolumeTest
- type DynamicallyProvisionedInvalidMountOptions
- type DynamicallyProvisionedPodWithMultiplePVsTest
- type DynamicallyProvisionedReadOnlyVolumeTest
- type DynamicallyProvisionedReclaimPolicyTest
- type DynamicallyProvisionedResizeVolumeTest
- type DynamicallyProvisionedRestartDriverTest
- type DynamicallyProvisionedStatefulSetTest
- type DynamicallyProvisionedVolumeSnapshotTest
- type DynamicallyProvisionedVolumeSubpathTester
- type DynamicallyProvisionedVolumeUnmountTest
- type PodDetails
- func (pod *PodDetails) SetupDeployment(client clientset.Interface, namespace *v1.Namespace, ...) (*TestDeployment, []func(), string)
- func (pod *PodDetails) SetupStatefulset(client clientset.Interface, namespace *v1.Namespace, ...) (*TestStatefulset, []func())
- func (pod *PodDetails) SetupWithCSIInlineVolumes(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- func (pod *PodDetails) SetupWithDynamicMultipleVolumes(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- func (pod *PodDetails) SetupWithDynamicVolumes(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- func (pod *PodDetails) SetupWithDynamicVolumesWithSubpath(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- func (pod *PodDetails) SetupWithInlineVolumes(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- func (pod *PodDetails) SetupWithPreProvisionedVolumes(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPod, []func())
- type PodExecCheck
- type PreProvisionedExistingCredentialsTest
- type PreProvisionedMultiplePods
- type PreProvisionedProvidedCredentiasTest
- type PreProvisionedReadOnlyVolumeTest
- type PreProvisionedReclaimPolicyTest
- type TestDeployment
- type TestPersistentVolumeClaim
- func (t *TestPersistentVolumeClaim) Cleanup()
- func (t *TestPersistentVolumeClaim) Create()
- func (t *TestPersistentVolumeClaim) DeleteBackingVolume(azfile *azurefile.Driver)
- func (t *TestPersistentVolumeClaim) DeleteBoundPersistentVolume()
- func (t *TestPersistentVolumeClaim) ReclaimPolicy() v1.PersistentVolumeReclaimPolicy
- func (t *TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume()
- func (t *TestPersistentVolumeClaim) WaitForBound() v1.PersistentVolumeClaim
- func (t *TestPersistentVolumeClaim) WaitForPersistentVolumePhase(phase v1.PersistentVolumePhase)
- type TestPod
- func (t *TestPod) Cleanup()
- func (t *TestPod) Create()
- func (t *TestPod) Logs() ([]byte, error)
- func (t *TestPod) SetNodeSelector(nodeSelector map[string]string)
- func (t *TestPod) SetupCSIInlineVolume(name, mountPath, secretName, shareName, server string, readOnly bool)
- func (t *TestPod) SetupInlineVolume(name, mountPath, secretName, shareName string, readOnly bool)
- func (t *TestPod) SetupRawBlockVolume(pvc *v1.PersistentVolumeClaim, name, devicePath string)
- func (t *TestPod) SetupVolume(pvc *v1.PersistentVolumeClaim, name, mountPath string, readOnly bool)
- func (t *TestPod) SetupVolumeMountWithSubpath(pvc *v1.PersistentVolumeClaim, name, mountPath string, subpath string, ...)
- func (t *TestPod) WaitForFailedMountError()
- func (t *TestPod) WaitForFailure()
- func (t *TestPod) WaitForRunning()
- func (t *TestPod) WaitForSuccess()
- type TestPreProvisionedPersistentVolume
- type TestSecret
- type TestStatefulset
- type TestStorageClass
- type TestVolumeSnapshotClass
- func (t *TestVolumeSnapshotClass) Cleanup()
- func (t *TestVolumeSnapshotClass) Create()
- func (t *TestVolumeSnapshotClass) CreateSnapshot(pvc *v1.PersistentVolumeClaim) *snapshotv1.VolumeSnapshot
- func (t *TestVolumeSnapshotClass) DeleteSnapshot(vs *snapshotv1.VolumeSnapshot)
- func (t *TestVolumeSnapshotClass) ReadyToUse(snapshot *snapshotv1.VolumeSnapshot)
- type VolumeDetails
- func (volume *VolumeDetails) SetupDynamicPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPersistentVolumeClaim, []func())
- func (volume *VolumeDetails) SetupPreProvisionedPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace, ...) (*TestPersistentVolumeClaim, []func())
- type VolumeDeviceDetails
- type VolumeMode
- type VolumeMountDetails
Constants ¶
const ( VolumeSnapshotKind = "VolumeSnapshot" VolumePVCKind = "PersistentVolumeClaim" APIVersionv1 = "v1" SnapshotAPIVersion = "snapshot.storage.k8s.io/" + APIVersionv1 )
Variables ¶
var (
SnapshotAPIGroup = "snapshot.storage.k8s.io"
)
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource struct {
Name string
}
type DynamicallyProvisionedAccountWithTags ¶ added in v0.8.0
type DynamicallyProvisionedAccountWithTags struct { CSIDriver driver.DynamicPVTestDriver Volumes []VolumeDetails StorageClassParameters map[string]string Tags string }
DynamicallyProvisionedAccountWithTags will provision required StorageClass(es), PVC(s) and Pod(s) Testing if the storage account contains tags
type DynamicallyProvisionedCmdVolumeTest ¶
type DynamicallyProvisionedCmdVolumeTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedCmdVolumeTest will provision required StorageClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to create a new PV Testing if the Pod(s) Cmd is run with a 0 exit code
type DynamicallyProvisionedCollocatedPodTest ¶
type DynamicallyProvisionedCollocatedPodTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails ColocatePods bool StorageClassParameters map[string]string }
DynamicallyProvisionedCollocatedPodTest will provision required StorageClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to create a new PV Testing if multiple Pod(s) can write simultaneously
type DynamicallyProvisionedDeletePodTest ¶
type DynamicallyProvisionedDeletePodTest struct { CSIDriver driver.DynamicPVTestDriver Pod PodDetails PodCheck *PodExecCheck StorageClassParameters map[string]string }
DynamicallyProvisionedDeletePodTest will provision required StorageClass and Deployment Testing if the Pod can write and read to mounted volumes Deleting a pod, and again testing if the Pod can write and read to mounted volumes
type DynamicallyProvisionedInlineVolumeTest ¶ added in v1.2.0
type DynamicallyProvisionedInlineVolumeTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails SecretName string Server string ReadOnly bool CSIInlineVolume bool }
DynamicallyProvisionedInlineVolumeTest will provision required SecretName, ShareName Waiting for the PV provisioner to create an inline volume Testing if the Pod(s) Cmd is run with a 0 exit code
type DynamicallyProvisionedInvalidMountOptions ¶ added in v0.5.0
type DynamicallyProvisionedInvalidMountOptions struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedInvalidMountOptions will provision a storage class with invalid mount options Testing if the Pod(s) Cmd is run with a 0 exit code
type DynamicallyProvisionedPodWithMultiplePVsTest ¶ added in v0.8.0
type DynamicallyProvisionedPodWithMultiplePVsTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedPodWithMultiplePVsTest will provision one pod with multiple PVs Waiting for the PV provisioner to create a new PV Testing if the Pod(s) Cmd is run with a 0 exit code
type DynamicallyProvisionedReadOnlyVolumeTest ¶
type DynamicallyProvisionedReadOnlyVolumeTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedReadOnlyVolumeTest will provision required StorageClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to create a new PV Testing that the Pod(s) cannot write to the volume when mounted
type DynamicallyProvisionedReclaimPolicyTest ¶
type DynamicallyProvisionedReclaimPolicyTest struct { CSIDriver driver.DynamicPVTestDriver Volumes []VolumeDetails Azurefile *azurefile.Driver StorageClassParameters map[string]string }
DynamicallyProvisionedReclaimPolicyTest will provision required PV(s) and PVC(s) Testing the correct behavior for different reclaimPolicies
type DynamicallyProvisionedResizeVolumeTest ¶ added in v0.5.0
type DynamicallyProvisionedResizeVolumeTest struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedResizeVolumeTest will provision required StorageClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to resize the PV Testing if the PV is resized successfully.
type DynamicallyProvisionedRestartDriverTest ¶ added in v1.0.0
type DynamicallyProvisionedRestartDriverTest struct { CSIDriver driver.DynamicPVTestDriver Pod PodDetails PodCheck *PodExecCheck StorageClassParameters map[string]string RestartDriverFunc func() }
DynamicallyProvisionedRestartDriverTest will test to ensure that restarting driver doesn't affect pod mounting. It will mount a pod, restart the driver daemonset and ensure that the pod still has access to original volume.
type DynamicallyProvisionedStatefulSetTest ¶ added in v0.10.0
type DynamicallyProvisionedStatefulSetTest struct { CSIDriver driver.DynamicPVTestDriver Pod PodDetails PodCheck *PodExecCheck }
DynamicallyProvisionedStatefulSetTest will provision required StorageClass and StatefulSet Testing if the Pod can write and read to mounted volumes Deleting a pod, and again testing if the Pod can write and read to mounted volumes
type DynamicallyProvisionedVolumeSnapshotTest ¶ added in v0.8.0
type DynamicallyProvisionedVolumeSnapshotTest struct { CSIDriver driver.PVTestDriver Pod PodDetails PodWithSnapshot PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedVolumeSnapshotTest will provision required StorageClass(es),VolumeSnapshotClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to create a new PV Testing if the Pod(s) can write and read to mounted volumes Create a snapshot, validate whether it is ready to use. This test only supports a single volume
func (*DynamicallyProvisionedVolumeSnapshotTest) Run ¶ added in v0.8.0
func (t *DynamicallyProvisionedVolumeSnapshotTest) Run(client clientset.Interface, restclient restclientset.Interface, namespace *v1.Namespace)
type DynamicallyProvisionedVolumeSubpathTester ¶ added in v1.2.0
type DynamicallyProvisionedVolumeSubpathTester struct { CSIDriver driver.DynamicPVTestDriver Pods []PodDetails StorageClassParameters map[string]string }
DynamicallyProvisionedCmdVolumeTest will provision required StorageClass(es), PVC(s) and Pod(s) Waiting for the PV provisioner to create a new PV Testing if the Pod(s) Cmd is run with a 0 exit code
type DynamicallyProvisionedVolumeUnmountTest ¶ added in v1.25.0
type DynamicallyProvisionedVolumeUnmountTest struct { CSIDriver driver.DynamicPVTestDriver Azurefile *azurefile.Driver Pod PodDetails PodCheck *PodExecCheck StorageClassParameters map[string]string }
DynamicallyProvisionedVolumeUnmountTest will provision required StorageClass and Deployment Testing if the Pod can write and read to mounted volumes Delete the volume and check whether pod could be terminated successfully
type PodDetails ¶
type PodDetails struct { Cmd string Volumes []VolumeDetails IsWindows bool WinServerVer string UseCMD bool }
func (*PodDetails) SetupDeployment ¶
func (pod *PodDetails) SetupDeployment(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, storageClassParameters map[string]string) (*TestDeployment, []func(), string)
func (*PodDetails) SetupStatefulset ¶ added in v0.10.0
func (pod *PodDetails) SetupStatefulset(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver) (*TestStatefulset, []func())
func (*PodDetails) SetupWithCSIInlineVolumes ¶ added in v1.3.0
func (pod *PodDetails) SetupWithCSIInlineVolumes(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, secretName, shareName, server string, readOnly bool) (*TestPod, []func())
func (*PodDetails) SetupWithDynamicMultipleVolumes ¶ added in v0.8.0
func (pod *PodDetails) SetupWithDynamicMultipleVolumes(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, storageClassParameters map[string]string) (*TestPod, []func())
SetupWithDynamicMultipleVolumes each pod will be mounted with multiple volumes with different storage account types
func (*PodDetails) SetupWithDynamicVolumes ¶
func (pod *PodDetails) SetupWithDynamicVolumes(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, storageClassParameters map[string]string) (*TestPod, []func())
func (*PodDetails) SetupWithDynamicVolumesWithSubpath ¶ added in v1.2.0
func (pod *PodDetails) SetupWithDynamicVolumesWithSubpath(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, storageClassParameters map[string]string) (*TestPod, []func())
func (*PodDetails) SetupWithInlineVolumes ¶ added in v1.2.0
func (pod *PodDetails) SetupWithInlineVolumes(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, secretName, shareName string, readOnly bool) (*TestPod, []func())
func (*PodDetails) SetupWithPreProvisionedVolumes ¶
func (pod *PodDetails) SetupWithPreProvisionedVolumes(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.PreProvisionedVolumeTestDriver) (*TestPod, []func())
type PodExecCheck ¶
type PreProvisionedExistingCredentialsTest ¶ added in v0.7.0
type PreProvisionedExistingCredentialsTest struct { CSIDriver driver.PreProvisionedVolumeTestDriver Pods []PodDetails Azurefile *azurefile.Driver }
PreProvisionedExistingCredentialsTest will provision required StorageClass(es), PVC(s) and Pod(s) Testing that the Pod(s) can be created successfully with existing credentials in k8s cluster
type PreProvisionedMultiplePods ¶ added in v0.9.0
type PreProvisionedMultiplePods struct { CSIDriver driver.PreProvisionedVolumeTestDriver Pods []PodDetails }
PreProvisionedMultiplePods will provision required PV(s), PVC(s) and Pod(s) Testing that the Pod(s) cannot write to the volume when mounted
type PreProvisionedProvidedCredentiasTest ¶ added in v0.7.0
type PreProvisionedProvidedCredentiasTest struct { CSIDriver driver.PreProvisionedVolumeTestDriver Pods []PodDetails Azurefile *azurefile.Driver }
PreProvisionedProvidedCredentiasTest will provision required PV(s), PVC(s) and Pod(s) Testing that the Pod(s) can be created successfully with provided storage account name and key(or sastoken)
type PreProvisionedReadOnlyVolumeTest ¶
type PreProvisionedReadOnlyVolumeTest struct { CSIDriver driver.PreProvisionedVolumeTestDriver Pods []PodDetails }
PreProvisionedReadOnlyVolumeTest will provision required PV(s), PVC(s) and Pod(s) Testing that the Pod(s) cannot write to the volume when mounted
type PreProvisionedReclaimPolicyTest ¶
type PreProvisionedReclaimPolicyTest struct { CSIDriver driver.PreProvisionedVolumeTestDriver Volumes []VolumeDetails }
PreProvisionedReclaimPolicyTest will provision required PV(s) and PVC(s) Testing the correct behavior for different reclaimPolicies
type TestDeployment ¶
type TestDeployment struct {
// contains filtered or unexported fields
}
func NewTestDeployment ¶
func (*TestDeployment) Cleanup ¶
func (t *TestDeployment) Cleanup()
func (*TestDeployment) Create ¶
func (t *TestDeployment) Create()
func (*TestDeployment) DeletePodAndWait ¶
func (t *TestDeployment) DeletePodAndWait()
func (*TestDeployment) Logs ¶
func (t *TestDeployment) Logs() ([]byte, error)
func (*TestDeployment) PollForStringInPodsExec ¶ added in v1.18.0
func (t *TestDeployment) PollForStringInPodsExec(command []string, expectedString string)
func (*TestDeployment) WaitForPodReady ¶
func (t *TestDeployment) WaitForPodReady()
type TestPersistentVolumeClaim ¶
type TestPersistentVolumeClaim struct {
// contains filtered or unexported fields
}
func NewTestPersistentVolumeClaim ¶
func NewTestPersistentVolumeClaim(c clientset.Interface, ns *v1.Namespace, claimSize string, volumeMode VolumeMode, sc *storagev1.StorageClass) *TestPersistentVolumeClaim
func NewTestPersistentVolumeClaimWithDataSource ¶
func NewTestPersistentVolumeClaimWithDataSource(c clientset.Interface, ns *v1.Namespace, claimSize string, volumeMode VolumeMode, sc *storagev1.StorageClass, dataSource *v1.TypedLocalObjectReference) *TestPersistentVolumeClaim
func (*TestPersistentVolumeClaim) Cleanup ¶
func (t *TestPersistentVolumeClaim) Cleanup()
func (*TestPersistentVolumeClaim) Create ¶
func (t *TestPersistentVolumeClaim) Create()
func (*TestPersistentVolumeClaim) DeleteBackingVolume ¶
func (t *TestPersistentVolumeClaim) DeleteBackingVolume(azfile *azurefile.Driver)
func (*TestPersistentVolumeClaim) DeleteBoundPersistentVolume ¶
func (t *TestPersistentVolumeClaim) DeleteBoundPersistentVolume()
func (*TestPersistentVolumeClaim) ReclaimPolicy ¶
func (t *TestPersistentVolumeClaim) ReclaimPolicy() v1.PersistentVolumeReclaimPolicy
func (*TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume ¶
func (t *TestPersistentVolumeClaim) ValidateProvisionedPersistentVolume()
func (*TestPersistentVolumeClaim) WaitForBound ¶
func (t *TestPersistentVolumeClaim) WaitForBound() v1.PersistentVolumeClaim
func (*TestPersistentVolumeClaim) WaitForPersistentVolumePhase ¶
func (t *TestPersistentVolumeClaim) WaitForPersistentVolumePhase(phase v1.PersistentVolumePhase)
type TestPod ¶
type TestPod struct {
// contains filtered or unexported fields
}
func NewTestPod ¶
func (*TestPod) SetNodeSelector ¶
func (*TestPod) SetupCSIInlineVolume ¶ added in v1.3.0
func (*TestPod) SetupInlineVolume ¶ added in v1.2.0
func (*TestPod) SetupRawBlockVolume ¶
func (t *TestPod) SetupRawBlockVolume(pvc *v1.PersistentVolumeClaim, name, devicePath string)
func (*TestPod) SetupVolume ¶
func (t *TestPod) SetupVolume(pvc *v1.PersistentVolumeClaim, name, mountPath string, readOnly bool)
func (*TestPod) SetupVolumeMountWithSubpath ¶ added in v1.2.0
func (*TestPod) WaitForFailedMountError ¶ added in v0.5.0
func (t *TestPod) WaitForFailedMountError()
func (*TestPod) WaitForFailure ¶
func (t *TestPod) WaitForFailure()
func (*TestPod) WaitForRunning ¶
func (t *TestPod) WaitForRunning()
func (*TestPod) WaitForSuccess ¶
func (t *TestPod) WaitForSuccess()
type TestPreProvisionedPersistentVolume ¶
type TestPreProvisionedPersistentVolume struct {
// contains filtered or unexported fields
}
func NewTestPreProvisionedPersistentVolume ¶
func NewTestPreProvisionedPersistentVolume(c clientset.Interface, pv *v1.PersistentVolume) *TestPreProvisionedPersistentVolume
func (*TestPreProvisionedPersistentVolume) Create ¶
func (pv *TestPreProvisionedPersistentVolume) Create() v1.PersistentVolume
type TestSecret ¶ added in v0.7.0
type TestSecret struct {
// contains filtered or unexported fields
}
func NewTestSecret ¶ added in v0.7.0
func (*TestSecret) Cleanup ¶ added in v0.7.0
func (t *TestSecret) Cleanup()
func (*TestSecret) Create ¶ added in v0.7.0
func (t *TestSecret) Create()
type TestStatefulset ¶ added in v0.10.0
type TestStatefulset struct {
// contains filtered or unexported fields
}
func NewTestStatefulset ¶ added in v0.10.0
func (*TestStatefulset) Cleanup ¶ added in v0.10.0
func (t *TestStatefulset) Cleanup()
func (*TestStatefulset) Create ¶ added in v0.10.0
func (t *TestStatefulset) Create()
func (*TestStatefulset) DeletePodAndWait ¶ added in v0.10.0
func (t *TestStatefulset) DeletePodAndWait()
func (*TestStatefulset) Logs ¶ added in v0.10.0
func (t *TestStatefulset) Logs() ([]byte, error)
func (*TestStatefulset) PollForStringInPodsExec ¶ added in v1.18.0
func (t *TestStatefulset) PollForStringInPodsExec(command []string, expectedString string)
func (*TestStatefulset) WaitForPodReady ¶ added in v0.10.0
func (t *TestStatefulset) WaitForPodReady()
type TestStorageClass ¶
type TestStorageClass struct {
// contains filtered or unexported fields
}
func NewTestStorageClass ¶
func NewTestStorageClass(c clientset.Interface, ns *v1.Namespace, sc *storagev1.StorageClass) *TestStorageClass
func (*TestStorageClass) Cleanup ¶
func (t *TestStorageClass) Cleanup()
func (*TestStorageClass) Create ¶
func (t *TestStorageClass) Create() storagev1.StorageClass
type TestVolumeSnapshotClass ¶
type TestVolumeSnapshotClass struct {
// contains filtered or unexported fields
}
func CreateVolumeSnapshotClass ¶
func CreateVolumeSnapshotClass(client restclientset.Interface, namespace *v1.Namespace, csiDriver driver.VolumeSnapshotTestDriver) (*TestVolumeSnapshotClass, func())
func NewTestVolumeSnapshotClass ¶
func NewTestVolumeSnapshotClass(c restclientset.Interface, ns *v1.Namespace, vsc *snapshotv1.VolumeSnapshotClass) *TestVolumeSnapshotClass
func (*TestVolumeSnapshotClass) Cleanup ¶
func (t *TestVolumeSnapshotClass) Cleanup()
func (*TestVolumeSnapshotClass) Create ¶
func (t *TestVolumeSnapshotClass) Create()
func (*TestVolumeSnapshotClass) CreateSnapshot ¶
func (t *TestVolumeSnapshotClass) CreateSnapshot(pvc *v1.PersistentVolumeClaim) *snapshotv1.VolumeSnapshot
func (*TestVolumeSnapshotClass) DeleteSnapshot ¶
func (t *TestVolumeSnapshotClass) DeleteSnapshot(vs *snapshotv1.VolumeSnapshot)
func (*TestVolumeSnapshotClass) ReadyToUse ¶
func (t *TestVolumeSnapshotClass) ReadyToUse(snapshot *snapshotv1.VolumeSnapshot)
type VolumeDetails ¶
type VolumeDetails struct { VolumeType string FSType string Encrypted bool MountOptions []string ClaimSize string ReclaimPolicy *v1.PersistentVolumeReclaimPolicy VolumeBindingMode *storagev1.VolumeBindingMode AllowedTopologyValues []string VolumeMode VolumeMode VolumeMount VolumeMountDetails VolumeDevice VolumeDeviceDetails // Optional, used with pre-provisioned volumes VolumeID string // Optional, used with PVCs created from snapshots DataSource *DataSource NodeStageSecretRef string }
func (*VolumeDetails) SetupDynamicPersistentVolumeClaim ¶
func (volume *VolumeDetails) SetupDynamicPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.DynamicPVTestDriver, storageClassParameters map[string]string) (*TestPersistentVolumeClaim, []func())
func (*VolumeDetails) SetupPreProvisionedPersistentVolumeClaim ¶
func (volume *VolumeDetails) SetupPreProvisionedPersistentVolumeClaim(client clientset.Interface, namespace *v1.Namespace, csiDriver driver.PreProvisionedVolumeTestDriver) (*TestPersistentVolumeClaim, []func())
type VolumeDeviceDetails ¶
type VolumeMountDetails ¶
Source Files ¶
- dynamically_provisioned_cmd_volume_tester.go
- dynamically_provisioned_collocated_pod_tester.go
- dynamically_provisioned_delete_pod_tester.go
- dynamically_provisioned_inline_volume.go
- dynamically_provisioned_invalid_mount_options.go
- dynamically_provisioned_pod_with_multiple_pv.go
- dynamically_provisioned_read_only_volume_tester.go
- dynamically_provisioned_reclaim_policy_tester.go
- dynamically_provisioned_resize_volume_tester.go
- dynamically_provisioned_restart_driver_tester.go
- dynamically_provisioned_statefulset_tester.go
- dynamically_provisioned_tags_tester.go
- dynamically_provisioned_volume_snapshot_tester.go
- dynamically_provisioned_volume_subpath_tester.go
- dynamically_provisioned_volume_unmount_tester.go
- pre_provisioned_existing_credentials_tester.go
- pre_provisioned_multiple_pods.go
- pre_provisioned_provided_credentials_tester.go
- pre_provisioned_read_only_volume_tester.go
- pre_provisioned_reclaim_policy_tester.go
- specs.go
- testsuites.go